473,414 Members | 1,628 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

PyGUI 1.6: A Note for MacOSX Users

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
3 1470
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Terry Richards | last post by:
i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting: make gcc -Iext/standard/ -I/Users/terryr/tmp/php-4.3.10/ext/standard/ -DPHP_ATOM_INC...
2
by: Terry Richards | last post by:
i am getting lots of errors such as:"...differs in signedness" what is it from? /Users/terryrichards/tmp/php-4.3.11/ext/zlib/zlib.c: In function 'zif_gzcompress':...
108
by: Zooko O'Whielacronx | last post by:
I'm a fan of Greg Ewing's PyGUI . I used it to code a simple game for my son , and enjoyed it. Programming with wxPython feels like programming with a C++ tool that has been wrapped in Python....
8
by: Ron Stephens | last post by:
Can anyone give me a brief comparison of the purposes of these two projects (AnyGUI and pyGUI)? In other words, how are the motivations and goals for each project different? Ron Stephens
1
by: Arnd | last post by:
Heya, any PyGUI users out there? I needed some finer text-positioning on a canvas (ie wanted to center a string wrt a point, something show_text() doesn't provide) So I looked into the...
4
by: andrea | last post by:
Hi everyone, I use python on macosx with textmate as editor (great program). I also use macport to install unix programs from the command line and I find it great too. Well I would like to have...
37
by: Michael Palmer | last post by:
As anyone knows, the state of Python GUI programming is a little fractured at this time, with many toolkits, wrappers and meta-wrappers dead and alive, with or without documentation. I've come...
2
by: Hugh | last post by:
The PyGUI website specified this place as the place for general discussion about it, so here goes.... First off - thanks for something that is so straightforward to get running on OSX... I've...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.