Re: [Pyobjc-dev] Noob problem: My First PyObjC app
Brought to you by:
ronaldoussoren
|
From: Frederik De B. <fre...@pa...> - 2008-11-25 19:03:20
|
After some more digging, I found out that XCode munges the original file hierarchy of your libraries. If you look inside Twite.app/ Contents/Resources, you'll see that scanner.py is in the root folder, although it should be inside of the simplejson folder. Here's the solution: 1. Download a new simplejson version from http://pypi.python.org/pypi/simplejson , and replace the old copy. Also, make sure there are no simplejson.py files in the root of your project. 2. Delete the folder reference to simplejson in your XCode project, and do a Resources > Right click > add existing files... > [ your new simplejson folder] > Create folder references. This last step is very important, and makes sure the package hierarchy is maintained. 3. Somewhere in your project was a reference to Scanner, with a capital 'S'. Replace that with a lowercase 's'. 3. Do a clean build of your project, so no extraneous simplejson.py files clutter up the system. Here's a version that includes the above changes: http://www.megaupload.com/?d=FOPDBQVI Kind regards, Frederik |