[Pythonmac-SIG] Python PyGame GTK SQLAlchemy on Leopard
Chris Van Bael
chris.van.bael at gmail.com
Sun May 17 11:21:19 CEST 2009
On Sat, May 16, 2009 at 6:04 PM, Ned Deily <nad at acm.org> wrote:
> 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.
Ned, you're absolutely right!
cd //Library/Frameworks/Python.framework/Versions/Current/bin/
./Python gives:
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
cd //System/Library/Frameworks/Python.framework/Versions/Current/bin/
./python gives
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 the user python is indeed working and has PyGame installed.
But unfortunately PyGTK is installed in the system Python, but I want
it in my user python.
I forgot to mention that I also did "jhbuild build pygtk" after that tutorial.
So it installs PyGTK, only in the wrong Python.
How can I solve that?
Do I need to change a configuration file that jhbuild uses as input or
can I copy the build GTK+PyGTK to my user Python?
Thanks for the help!
Chris
More information about the Pythonmac-SIG
mailing list