In article <5465ee790905152354p67e35a89ref0e50b2fa0cf...@mail.gmail.com>, Chris Van Bael <chris.van.b...@gmail.com> wrote: > it's been a while since my last question, but unfortunately I didn't > make much progress. > The problem I'm facing now is that PyGTK is not installed correct. > > I installed python 2.5 from Python.org. > So if I do cd //Library/Frameworks/Python.framework/Versions/Current/bin/ > and python, I get the following Python prompt: > 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. > >>> > > But if I go to the System Python cd > //System/Library/Frameworks/Python.framework/Versions/Current/bin/ > I get exactly the same Python prompt. > Is that correct?
Well, no, that's not right. But just to make sure we're talking apples to Apples, make sure you are really invoking the pythons you think you are. Just cd'ing to a directory doesn't automatically add that directory to $PATH. So, if you just type "python", you're likely getting the same python each time. Instead, do the cd to the two "bin" directories but type "./python" instead. Beyond that, the python.org installers create symlinks at /usr/local/bin/python and /usr/local/bin/python2.n while OSX creates a symlink at /usr/bin/python to the system python, so you should be able to invoke the desired python by using those absolute paths. The Sep 19 2006 date indicates you are most likely using the python.org 2.5(.0) python, which, by the way, is out-of-date: the current python.org 2.5 is 2.5.4 and 2.6 is already at 2.6.2: <http://www.python.org/download/> > Then I went to the PyGame website and installed > pygame-1.8.1release-py2.5-macosx10.5.zip > They say it is for the Python.org python. > If I do "import PyGame" it works on both the Python.org and System Python. > I was confused that it would also work on the System Python. > > Then I wanted to install PyGTK, for which I followed the instructions > on http://live.gnome.org/GTK%2B/OSX/BuildInstructions > > When finally finished, I tried to "import pygtk", but > >>> import pygtk > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named pygtk IIUC, those instructions just install the underlying GTK+ libraries. You would still need to install PyGTK, the python wrappers to those libraries: http://www.pygtk.org/downloads.html -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig