I had similar issue:got error message: "No module named pkg_resources"on __init__.py which had:import__('pkg_resources').declare_namespace(__name__)I resolved the issue by replacing it with:import modulefinderfor p in __path__:modulefinder.AddPackagePath(__name__, p)Hope it will help you too.
On Wednesday, October 3, 2012 10:07:33 AM UTC-4, Jerónimo Barraco Mármol wrote:I'm trying to pack my app which uses zodb.one of the dependences are zope.interface and zope.event which are distributed in two different eggs.when i pack the app i get an error saying that zope.event can't be found though is importable.in my distribution i have:site-packages/zope.interfacexxx.egg/zope/__init__.pyzope.eventxxx.egg/zope/__init__.pyevent/and in zope.event.egg/zope/__init__.py it has this line__import__('pkg_resources').declare_namespace(__name__)i know what is for, i should try to make available the path of zope.event and zope.interface for pyinstaller.i tried writing a hook but i'm not able to make it work.when i write a hook for zope (hook-zope.py) pyinstaller picks it up, but when i write one for zope.event (hook-zope.event.py) it never gets called.Also i dont know what's the best way to solve this. i've tried reading the other hooks but i'm unsure,can someone please help me a little?
and in zope.event.egg/zope/__init__.py it has this line__import__('pkg_resources').declare_namespace(__name__)
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-09-kommerz-uber-recht-fdp-die-gefaellt-mir-partei
Blog:
http://www.goebel-consult.de/blog/200505010
Goebel Consult ist Mitglied bei http://www.7-it.de/