newbie, help with pythonpath

Eduardo Suarez eduardo at ctm.ulpgc.es
Fri Mar 4 12:49:37 CET 2005


What do i need to add to the path? I have already tried the same with 
the PYTHONPATH variable.

Thanks in advance,
-Eduardo

[otto:eduardo/ 501]$ python
Python 2.3.5 (#2, Feb  9 2005, 00:38:15)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.path.append('/usr/local/pygtkglext-1.0.1')
 >>> import gtk.gtkgl
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>> sys.path.append('/usr/local/pygtkglext-1.0.1/lib')
 >>> import gtk.gtkgl
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>> sys.path.append('/usr/local/pygtkglext-1.0.1/lib/python2.3')
 >>> import gtk.gtkgl
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>> 
sys.path.append('/usr/local/pygtkglext-1.0.1/lib/python2.3/site-packages')
 >>> import gtk.gtkgl
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>> 
sys.path.append('/usr/local/pygtkglext-1.0.1/lib/python2.3/site-packages/gtk 
-2.0')
 >>> import gtk.gtkgl Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>> 
sys.path.append('/usr/local/pygtkglext-1.0.1/lib/python2.3/site-packages/gtk 
-2.0/gtk')
 >>> import gtk.gtkgl Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>> 
sys.path.append('/usr/local/pygtkglext-1.0.1/lib/python2.3/site-packages/gtk 
-2.0/gtk/gtkgl')
 >>> import gtk.gtkgl Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named gtkgl
 >>>

Chmouel Boudjnah wrote:
> Eduardo Suarez wrote:
> 
>> I'm trying to set the python path variable so i can use them, but i 
>> haven't got it. Any hint?
> 
> 
> sys.path.append('/usr/blah/blah/blah/directory')
> 




More information about the Python-list mailing list