It's now having trouble locating pango. 
In the spirit of the suggestions regarding gtk here, I added all the paths
related to pango that I could find to PYTHONPATH:
/sw/lib/pango:/sw/etc/:/sw/lib/pango/1.4.0/modules:/sw/etc/pango:/include/pango-1.0/pango:/lib/pkgconfig

but to no avail.

  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/kananoquiz/gtk_gui.py",
line 27, in ?
    from pango import FontDescription
ImportError: No module named pango

What am I missing?

As a long term solution, is it possible to build a feature in to fink that
automatically sets all relevant PATH variables? (Not just for python type
packages but in general) 



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.
> 
> -- 
> Martin
> 
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/gtk-%22importerror%22-tp17263512p17357676.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
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to