Hi, took a while before I had the time to search for it (in Spotlight)
They can both be found in: myuser/gtk/source/pygtk/ But I guess that's just the source for GTK+PyGTK. Doesn't Spotlight search in the Python tree? I don't understand how this all works. In Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages I see PyObjC and pygame. (that's the Python.org python I understood) In System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.5 there is no site-packages? So where should I search for the pyGTK I installed? Is there anywhere a guide explaining Python on Leopard, because the more I'm trying to do something, the more I'm getting confused. Thanks for any help, Chris On Mon,, Jun 1, 2009 at 7:09 PM, Arjan Molenaar<[email protected]> wrote: > 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 [email protected] >> http://www.daa.com.au/mailman/listinfo/pygtk >> Read the PyGTK FAQ: http://faq.pygtk.org/ > > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
