squeeze and package imports

Fredrik Lundh fredrik at pythonware.com
Fri Sep 26 17:33:26 EDT 2003


Mathias Waack wrote:

> it works without squeezing and fails with squeezing. In the latter
> case, the Buffer import statement named above fails. The traceback
> shows, which import in which file is executed, but instead of the
> directory names of each file it prints only question marks "?". Thus
> I thought, if the import code doesn't know about the current
> directory, it can't import the Buffer module, because it can't look
> into the "same" directory. And so my second try:
>
>         sys.path.append("/tmp")
>         sys.path.append("/tmp/DCOracle")
>         import DCOracle
>
> And everything works fine. But I'm still curious - there seems to be
> something wrong with the import hooks in the squeeze module. BTW,
> I'm using python 2.2.2.

Python didn't have packages back in the early days when squeeze
was written (Python 1.3 or so); afaik, nobody's ever gotten around
to add true package support to the tool.

for a modern replacement, see:

    http://www.mcmillan-inc.com/install1.html

</F>








More information about the Python-list mailing list