[pygtk] PyGTK on OSX for Python.org Python

Arjan Molenaar gaphor at gmail.com
Tue Jun 2 01:09:13 WST 2009


Hi Chris,

Does a simple "import gtk" work? If not, where are the files  
"pygtk.py" and "gtk/__init__.py" located?

Regards,

Arjan

On 17 May 2009, at 22:12, Chris Van Bael wrote:

> 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
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/



More information about the pygtk mailing list