On Jan 7, 11:05 pm, Victor Lin <[email protected]> wrote:
> I am using pyinstaller1.5.1 to trying to package my project, and I
> noticed that zope.interface is not imported correctly
>
>     W: no module named zope.interface (top-level import by
> twisted.internet._threadedselect)
>
> After tracing the code, I notice that the way pyinstaller treat
> namespace package is wrong. zope.interface uses namespace package,
> they shares zope package name but they are in different path. I have
> another zope module named "zope.sqlalchemy" installed in my python
> environment. As result, mf.py find zope directory of zope.sqlalchemy
> at first
>
>     C:\Python27\Lib\site-packages\zope.sqlalchemy-0.7-py2.7.egg\zope
>
> then use the wrong path for looking the "interface" folder. Of course,
> it does not exist
>
>    C:\Python27\Lib\site-packages\zope.sqlalchemy-0.7-py2.7.egg\zope
> \interface
>
> I think this is kind of bug. Is there any workaround I can use now? Of
> is this problem already fixed in trunk?

It's still a problem as of the latest PyInstaller on Git.

The workaround for zope.interface is to drop a zero-byte __init__.py
into the zope/ directory.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to