Problem with py-gtk2 under MacPorts
Hello! I've just started using MacPorts and have installed in on my G4 PowerBook running OSX 10.4.11 from the universal disk image for Tiger. I then ran: port install py-gtk2 when the build had finished (much later... ;-) ), I noticed that there was a python2.4 binary installed in /opt/local/bin I ran this and tried to import pygtk, but got "ImportError: No module named pygtk" I looked where pygtk puts its files ("port contents py-gtk2") and noticed that they were in: /opt/local/lib/python2.3/site-packages/ as were the files for py-cairo and py-gobject, on which py-gtk2 depends. python2.3 wasn't installed as part of the installation of py-gtk2 (and this is the first package I've installed, so everything that's there is a result of typing "port install py-gtk2"). If I set: PYTHONPATH=/opt/local/lib/python2.3/site-packages before running the python2.4 binary, I can get things to work. This is my first time using MacPorts, so am I doing something wrong or is there a problem with the dependencies for py-gtk2? Best wishes, Jens
participants (1)
-
Thomas, JMH (Jens)