I set-up my PYTHONPATH as follows:
[Admins-Computer 18] > echo $PYTHONPATH
/sw/bin:/sw/lib/python2.3/site-packages:/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
Now it proceeds one line further in the syntax error output:
File "/sw/lib/python2.3/site-packages/gtk.py", line 20, in ?
from GTK import *
ImportError: No module named GTK
So it *looks* like it's using /sw/bin/python2.3 now.
Are gtk and GTK two different things -- is that probably why I'm getting
this error?
My OS version is 10.4.11
Daniel Macks wrote:
>Use /sw/bin/python2.3 or something
> similar) instead of apple's /usr/bin/python*.
You can also use the environment variable PYTHONPATH to point python to
multiple or non-standard installation directories. You would need to do
this if you installed some python stuff in
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
(AKA /Library/Python/2.3/site-packages) and others in
/sw/lib/python2.3/site-packages.
-Martin
--
View this message in context:
http://www.nabble.com/gtk-%22importerror%22-tp17263512p17333051.html
Sent from the fink-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users