PyGUI 1.6: A Note for MacOSX Users

Alex Martelli aleaxit at yahoo.com
Wed Mar 1 10:09:07 EST 2006


greg <greg at cosc.canterbury.ac.nz> wrote:

> A small problem has come to light with PyGUI 1.6
> on MacOSX systems.
> 
> If you get the following exception:
> 
>     File "GUI/Generic/BaseAlertFunctions.py", line 5, in ?
>     ImportError: No module named Alerts
> 
> it's probably because you don't have PyObjC installed.

I'm getting quite a different error:

[[snipped earlier parts of traceback]]
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pa
ckages/GUI/Cocoa/Applications.py", line 184, in init_application_name
    ns_info['CFBundleName'] = GApplications.application_name
TypeError: object does not support item assignment

That's when I try (after installing PyGUI):

helen:~/Desktop/PyGUI-1.6/Demos alex$ python blobedit.py 

MacOSX, XCode, Python and PyObjC all at the latest binary-released
levels, I believe (10.4.5, 2.2, 2.4.1, 1.3.6 respectively).


Alex



More information about the Python-list mailing list