[Pythonmac-SIG] "Fatal Python error: PyThreadState_Get: no current thread"

Bob Ippolito bob at redivi.com
Wed Feb 2 09:45:17 CET 2005


On Feb 2, 2005, at 2:12 AM, Richard Jones wrote:


> On 02/02/2005, at 3:10 PM, Richard Jones wrote:
>> My app is a simple GUI thing which controls Zope through the 
>> zdaemon.zdctl module. It's attached. The Zope libs (and some 
>> supporting libs) are installed in the app's Resources folder in a 
>> "runtime" subdirectory (historical name, will eventually change to 
>> Zope ;)
>
> Bob has pointed out that the python libs shouldn't be in the runtime 
> directory, they should be included through py2app's module management.
>
> Zope has ... interesting ideas about how modules and packages work 
> though, so that's going to be fun to sort out :)
>
> I noticed that if I specify a packages option to py2app, it creates 
> both a site-packages.zip *and* a site-packages directory. It then 
> fails to find some stuff. Adding the packages as "includes" doesn't 
> help, as the packages are then included in the zip file, and 
> unfortunately, Zope stores data files in the packages alongside the 
> Python source files, and assumes those files are in a regular 
> directory structure. So now I work on figuring how to turn off the 
> zip-ification of site-packages.

Creating both a zip and a directory is perfectly normal and expected.

"fails to find some stuff" is probably unrelated.

Turning off zip-ification of site-packages wouldn't do you any good 
because py2app chooses which files it wants to put in there.

Look at <http://svn.red-bean.com/bob/py2app/trunk/examples/pkg_data/> 
-- it's designed to be particularly annoying to package.

-bob



More information about the Pythonmac-SIG mailing list