|
Re: What's installed by default on Jaguar?: msg#00130python.apple
On May 24, 2004, at 10:58 PM, Glenn Andreas wrote: So I just noticed that on a recently clean install of Jaguar (with the latest patches, incuding BSD "optional" install, but no developer tools installed), PyOXIDE wouldn't work correctly. I eventually narrowed it down to the fact that I couldn't import objc. I thought this was part of Python.framework by default, but apparently not. Jaguar comes with a statically linked Python 2.2.0 (which is to say it is definitely not a framework, among other things) without many of the goodies. Don't use it for anything, especially not extension modules, and *very* especially not PyObjC (Ronald has some godawful hack where he actually turns off the garbage collector if you import PyObjC from Python 2.2.0.. so that it doesn't crash!). I have a lot of experience with Python 2.2.0 and its bugs, and I tried really hard to make things work with it, but then I gave up. I highly suggest you do the same, immediately, before you cause yourself any more pain. objc is part of PyObjC. Stock Python comes with no special support for Objective C whatsoever, and unlike Perl and Java, Apple does not distribute any sort of Objective C bridge for Python in a default install. So I went to packman to install it. I could have sworn there was a nice little icon & stand alone verison of it, but couldn't find that either. Eventually I used the shell to go to (IIRC) /System/Library/Frameworks/Python.Framework/Versions/2.3/Mac/Tools/IDE and directly opened PackageManager.py using pythonw. It doesn't work either - it can't import waste. Can't launch the IDE there - again, no waste. Where did this Python2.3 even come from? It sounds like you did something strange, like installing Jaguar over Panther? If you installed the MacPython 2.3 distro for Jaguar, it should already have waste with it, because all of the GUI tools it ships with depend on it. So how does one install waste.so in the first place? (I ended up using pimp.py to manually install PyObjC binary and that works, but I didn't see waste on the list of packages - if I didn't read this mailing list I would have never known to try that). waste.so is built as part of the Python source tree, but only if you have its dependency in the right place. It's documented somewhere in Python's source, but I haven't bothered with waste in a very long time.. Jack could probably rattle the details off the top of his head though. -bob
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | What's installed by default on Jaguar?: 00130, Glenn Andreas |
|---|---|
| Next by Date: | Re: What's installed by default on _Panther_?: 00130, Glenn Andreas |
| Previous by Thread: | What's installed by default on Jaguar?i: 00130, Glenn Andreas |
| Next by Thread: | Re: What's installed by default on _Panther_?: 00130, Glenn Andreas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |