[pygtk] PyGTK on OSX for Python.org Python
Chris Van Bael
chris.van.bael at gmail.com
Mon May 18 04:12:45 WST 2009
Hi all,
I'm trying to build an application on OS X.
First I installed Python 2.5 from Python.org.
Then I installed the binary build from PyGame.org.
Someone gave me this link: http://live.gnome.org/GTK%2B/OSX/BuildInstructions
to install PyGTK.
I followed those instuctions and finally executed "jhbuild build pygtk".
Got no errors.
When I execute my Python.org python:
cd //Library/Frameworks/Python.framework/Versions/Current/bin/
./Python
I get:
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>> import pygtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
When I execute my System Python:
cd //System/Library/Frameworks/Python.framework/Versions/Current/bin/
./python
I get:
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygame
>>> import pygtk
So PyGame is in my Python.org Python, but PyGTK is in my System Python
and not in my Python.org Python.
How can I solve this?
Thanks for any help!
Chris
More information about the pygtk
mailing list