[Distutils] OS X problem with pkg_resources and the twisted event loop

Phillip J. Eby pje at telecommunity.com
Thu Jan 19 18:49:49 CET 2006


At 04:59 PM 01/19/2006 +0000, Michael Twomey wrote:
>  I've got a work around though: If I import pkg_resources before starting 
> my twisted app it seems to fix the problem. (I presume that 
> get_platform's output is being kept somewhere, Environment's __init__ 
> args I think.) cheers,   Michae

Yes, in general it's best to import pkg_resources sooner rather than 
later.  :)  If you're running an application using a script generated by 
easy_install, this is taken care of for you, as pkg_resources gets imported 
in order to set up sys.path with the script's requirements.



More information about the Distutils-SIG mailing list