[Twisted-Python] Trying to get twisted.protocols.amp to work with py2app...
Nathan
nathan.stocks at gmail.com
Tue Mar 4 18:50:50 EST 2008
> > Maybe when you actually run the .app it's finding the system-installed
> > version of Twisted?
> >
> And the canonical way to locate that problem would be to add something
> like:
>
> import twisted.protocols
> print twisted.protocols.__file__
>
> to your app, to see from where the twisted package is coming.
>
Now we're getting somewhere! Yes, even though py2app seems to be
pulling in my Twisted 2.5 from /Library/Python/2.5/site-packages when
the app is built, when the app is actually run it's finding the
Leopard-default-installed Twisted 2.4 instead:
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/twisted/protocols/__init__.pyc
So, the next logical question would be: How do I get my script inside
my .app to consider the libraries inside the .app first? You'd think
that py2app would already be taking care of that...
~ Nathan
More information about the Twisted-Python
mailing list