Thanks!
I solved it by copy the event package into the interface folder, but i dont 
want to modify the zope library, i want to make it work as expected.

El jueves, 4 de octubre de 2012 11:05:26 UTC-3, Michelle escribió:
>
> 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 modulefinder
>   for 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__.py
>>
>>       zope.eventxxx.egg/
>>            zope/
>>               __init__.py 
>>               event/
>>
>> 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?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyinstaller/-/M_iNMjr_gAoJ.
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