[Pythonmac-SIG] New to PyObjC - default XCode project error
Bob Ippolito
bob at redivi.com
Thu Sep 23 23:25:49 CEST 2004
On Sep 23, 2004, at 5:05 PM, Arthur Clemens wrote:
>
> On 23-sep-04, at 22:46, Bob Ippolito wrote:
>
>> You must have several versions of Python installed, and the version
>> of Python that the executable stub is detecting is not the version of
>> Python that you installed PyObjC for. You need to edit the
>> PyRuntimeLocations key in the application's Info.plist to point to
>> the one(s) that you plan on using (probably @executable_path/.... and
>> /System/...). I'm not sure what the default order is.
>
> This is what the default template writes in the info.plist:
>
> <key>PyRuntimeLocations</key>
> <array>
> <string>@executable_path/../Frameworks/Python.framework/Versions/
> 2.3/Python</string>
> <string>~/Library/Frameworks/Python.framework/Versions/2.3/Python</
> string>
> <string>/Library/Frameworks/Python.framework/Versions/2.3/Python</
> string>
> <string>/Network/Library/Frameworks/Python.framework/Versions/2.3/
> Python</string>
> <string>/System/Library/Frameworks/Python.framework/Versions/2.3/
> Python</string>
> <string>/sw/lib/libpython2.3.dylib</string>
> </array>
>
>
> Do you mean I should re-order them? I tried but without success.
If you installed via the PyObjC .pkg installer, then it is installed
for this Python:
> <string>/System/Library/Frameworks/Python.framework/Versions/2.3/
> Python</string>
You must have another Python 2.3 installed in one of the locations
higher up on the list (you probably shouldn't). Uninstall it, or
change the plist.
-bob
More information about the Pythonmac-SIG
mailing list