On May 20, 2008, at 11:30 AM, Martin Costabel wrote:

> thetrystero wrote:
>> 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?
>
> I looked at that package pygtk-py23. Strangely, it installs some  
> stuff,
> for example GTK.py, into the directory /sw/lib/site-python/.
>
> You could try to add /sw/lib/site-python to your PYTHONPATH.

pygtk-py23 is part of the old pygtk 1.  If I remember correctly, in  
pygtk 1 there were files called gtk.py *and* GTK.py.  They couldn't  
be in the same directory on Apple's case insensitive file system, so  
GTK.py was put in a strange spot.

You probably don't want to install pygtk-py23 at all.  Stick with  
pygtk2-gtk-py23, which is more up to date and doesn't have this problem.

  -- Steve

--
-- EMail: [EMAIL PROTECTED]                    Phone: (301)  
975-5423 --
-- WWW:  http://math.nist.gov/mcsd/Staff/SLanger/    Fax:   (301)  
975-3553 --
-- Mail: NIST; 100 Bureau Drive -- Stop 8910; Gaithersburg, Md   
20899-8910 --

-- "I don't think this will work.  That's why it's  
science."               --
--                              Naomi Langer (age 6),  17 Feb  
2003         --



-------------------------------------------------------------------------
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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to