Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > PyGUI 1.6: A Note for MacOSX Users

Reply
Thread Tools

PyGUI 1.6: A Note for MacOSX Users

 
 
greg
Guest
Posts: n/a
 
      03-01-2006
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
 
Reply With Quote
 
 
 
 
Alex Martelli
Guest
Posts: n/a
 
      03-01-2006
greg <> 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
 
Reply With Quote
 
 
 
 
Greg Ewing
Guest
Posts: n/a
 
      03-09-2006
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
 
Reply With Quote
 
Alex Martelli
Guest
Posts: n/a
 
      03-09-2006
Greg Ewing <> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FF Broadband Users -- Take Note, but With Caution Herb Firefox 3 01-30-2005 12:40 AM
ANN: PyGUI 1.5.1 greg Python 0 07-04-2004 01:44 AM
ANN: PyGUI 1.5 greg Python 0 06-27-2004 02:50 AM
ANN: PyGUI 1.4 Greg Ewing Python 0 06-21-2004 12:36 AM
ANN: PyGUI 1.3 released (Greg's Pythonic GUI Framework) greg Python 1 06-15-2004 02:00 AM



Advertisments