[CentOS] loosing applications

Sun May 6 23:18:30 UTC 2012
Michel Donais <donais at telupton.com>

>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
>>> print (sys.path)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'sys' is not defined
>>> import sys
>>> print (sys.path)
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', 
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', 
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages']
>>> import libuser
>>>

Larry Martell seem's to have the right way.
sys is not defined.

Where should I pout it to get it permanent aund use pirut under X


[root at serveur ~]# su michel

[michel at serveur root]$ 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
>>> print (sys.path)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'sys' is not defined
>>> import sys
>>> print (sys.path)
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', 
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', 
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages']
>>>
>>>
[michel at serveur root]$ >>> import sys
bash: syntax error near unexpected token `>'
[michel at serveur root]$ >>> print (sys.path)
bash: syntax error near unexpected token `>'
[michel at serveur root]$
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', 
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', 
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages']
[michel at serveur root]$ >>> import libuser
bash: syntax error near unexpected token `>'
[michel at serveur root]$ >>>
bash: syntax error near unexpected token `>'

[michel at serveur root]$ [root at serveur ~]# su michel
[michel at serveur root]$ [michel at serveur root]$ python
bash: [michel at serveur: command not found
[michel at serveur root]$ Python 2.4.3 (#1, Feb 22 2012, 16:06:13)
bash: syntax error near unexpected token `('
[michel at serveur root]$ [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
bash: syntax error near unexpected token `('
[michel at serveur root]$ Type "help", "copyright", "credits" or "license" for
more information.
[michel at serveur root]$ >>> import libuser
bash: syntax error near unexpected token `>'
[michel at serveur root]$ >>> print (sys.path)
bash: syntax error near unexpected token `>'
[michel at serveur root]$ Traceback (most recent call last):
bash: syntax error near unexpected token `most'
[michel at serveur root]$   File "<stdin>", line 1, in ?
bash: File: command not found
[michel at serveur root]$ NameError: name 'sys' is not defined
bash: NameError:: command not found
[michel at serveur root]$ >>> import sys
bash: syntax error near unexpected token `>'
[michel at serveur root]$ >>> print (sys.path)
bash: syntax error near unexpected token `>'
[michel at serveur root]$
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', 
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', 
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages']
-- 
Michel Donais
Donais & Fils Inc