Re: loosing applications

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, May 6, 2012 at 3:45 PM, Michel Donais <donais@xxxxxxxxxxxx> wrote:
> First trial from root
>
> [root@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@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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux