Re: [Pyobjc-dev] NSSet valueForKey: breaks when using py2app
Brought to you by:
ronaldoussoren
From: Phil F. <in...@bi...> - 2005-11-03 14:34:09
|
On Wed, Nov 02, 2005 at 11:29:55PM +0100, Ronald Oussoren wrote: > For the record: I can reproduce this. Running python2.3 __boot__.py > inside the bundle works just fine (even with PYTHONPATH set to a > value that forces loading from the site-packages.zip inside the > bundle), running .../MacOS/dew gives the error. > > A difference between the two is that the bootstrap executable was > linked on Panther. The bootstrap executable and _Foundation.so seem > to link to a different version of Foundation according to otool -vL. > > _Foundation.so: > /System/Library/Frameworks/Foundation.framework/Versions/C/ > Foundation (compatibility version 300.0.0, current version 567.21.0) > > bootstrap executable: > /System/Library/Frameworks/Foundation.framework/Versions/C/ > Foundation (compatibility version 300.0.0, current version 500.59.0) > > It could well be that this is relevant. Someone could rebuild the > bootstrap executable on Tiger and check if that solves the problem. > > Ronald Is there a workaround I can use for development until a better solution is found? I tried running this __boot__.py having set RESOURCEPATH, but I get File "/private/Network/Servers/xserve.macprofessionals.lan/Users/pfrost/dew/build/Development/dew.app/Contents/Resources/__boot__.py", line 47, in _run execfile(path, globals(), globals()) File "/private/Network/Servers/xserve.macprofessionals.lan/Users/pfrost/dew/dew.py", line 9, in ? info = NSBundle.mainBundle().infoDictionary()[u'PyObjCXcode'] File "build/lib.darwin-8.1.0-Power_Macintosh-2.3/objc/_convenience.py", line 121, in __getitem__objectForKey_ File "build/lib.darwin-8.1.0-Power_Macintosh-2.3/objc/_convenience.py", line 457, in container_unwrap KeyError: u'PyObjCXcode' I could probably determine what this info should be and set it as a literal in the file, but is there a simpler solution? |