By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,719 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,719 IT Pros & Developers. It's quick & easy.

PyGUI 1.6: A Note for MacOSX Users

P: n/a
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 will fix this to produce a more informative error
message in the next release.

================================================== ====

What is PyGUI?
--------------

PyGUI is an experimental highly-Pythonic cross-platform
GUI API. Implementations are currently available for
MacOSX and Gtk. For a full description of the project
goals, see the PyGUI web page at the above address.

The current version is available from:

http://www.cosc.canterbury.ac.nz/~greg/python_gui/

--
Greg
Mar 1 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
greg <gr**@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
Mar 1 '06 #2

P: n/a
Alex Martelli wrote:
"/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


You need to run your program with pythonw, not python.

--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
Mar 9 '06 #3

P: n/a
Greg Ewing <gr**@cosc.canterbury.ac.nz> wrote:
Alex Martelli wrote:
"/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


You need to run your program with pythonw, not python.


Thanks -- that was indeed my mistake. Dunno why I keep tripping over
that problem on the Mac;-).
Alex
Mar 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.