[Pythonmac-SIG] What's installed by default on Jaguar?

Bob Ippolito bob at redivi.com
Mon May 24 23:21:48 EDT 2004


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.
>
> Looking in /Library/Python/2.3 all that's in there is a README that 
> says what it is there for (but no information on where to get more 
> stuff).  On a machine that's been updated over the years to 10.3 
> /Library/Python/2.3 has both _tkinter.so and waste.so (I remember 
> installing _tkinter.so using PackMan - obviously I didn't install 
> waste.so with PackMan because, well, PackMan doesn't run without it).

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040524/ec483a69/smime.bin


More information about the Pythonmac-SIG mailing list