[Pythonmac-SIG] py2app + wxpython -> ImportError
Christian K.
ckkart at hoc.net
Mon Apr 11 21:12:13 CEST 2011
Am 10.04.11 22:12, schrieb Aahz:
> On Sun, Apr 10, 2011, Christian K. wrote:
>>
>> I tried to make an app using py2app on OSX 10.6.5, python 2.6.5,
>> wxpython 2.8.11.0
>> Building works, but when running I get
>>
>> File "wx/lib/pubsub/pub.pyc", line 24, in<module>
>> File "wx/lib/pubsub/core/listener.pyc", line 13, in<module>
>> ImportError: No module named listenerimpl
>
> Do you have this problem with a simple test app? Are any of your
> imports inside ``if`` blocks or function calls?
No, I import it like this:
from wx.lib.pubsub import setuparg1
from wx.lib.pubsub import pub as Publisher
The first line is important for freezing with py2exe on windows.
Christian
More information about the Pythonmac-SIG
mailing list