On Sun, May 6, 2012 at 3:45 PM, Michel Donais <donais at telupton.com> wrote: > First trial from root > > [root at serveur ~]# python > Python 2.4.3 (#1, Feb 22 2012, 16:06:13) > [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import libuser > > "no error there; so it found it's way to libuser" > >>>> print (sys.path) > Traceback (most recent call last): > File "<stdin>", line 1, in ? > NameError: name 'sys' is not defined > > "here it seem that there is no path defined You need to import sys > > = = = = = = = = = = = = = = = = = = = = = = = = = = = = > Second trial (non-root) /usr/michel > > [michel at serveur ~]$ python > Python 2.4.3 (#1, Feb 22 2012, 16:06:13) > [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> inport libuser import not inport > File "<stdin>", line 1 > inport libuser > ^ > SyntaxError: invalid syntax >>>> >>>> >>>> print(sys.path) > Traceback (most recent call last): > File "<stdin>", line 1, in ? > NameError: name 'sys' is not defined >>>> > > > I think we are near a solution > > --- > Michel Donais > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos