[CentOS] loosing applications

2012-05-04 Thread Michel Donais
For some times I'm loosing graphical applications usage
as pirut and system-config-users,
Yum auto update is not working too but I can update with command lin yum 
update

Versions instlalled
pirut-1.3.28-19.el5.centos.noarch.rpm
system-config-users-1.2.51-7.el5.rpm


Do somebody have an idea for a solution


---
Michel Donais 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Ljubomir Ljubojevic
On 05/05/2012 03:44 AM, Michel Donais wrote:
> For some times I'm loosing graphical applications usage
> as pirut and system-config-users,
> Yum auto update is not working too but I can update with command lin yum
> update
>
> Versions instlalled
> pirut-1.3.28-19.el5.centos.noarch.rpm
> system-config-users-1.2.51-7.el5.rpm
>
>
> Do somebody have an idea for a solution
>

Run both commands from terminal and see what error is being reported.


-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Michel Donais
> On 05/05/2012 03:44 AM, Michel Donais wrote:
>> For some times I'm loosing graphical applications usage
>> as pirut and system-config-users,
>> Yum auto update is not working too but I can update with command lin yum
>> update
>>
>> Versions instlalled
>> pirut-1.3.28-19.el5.centos.noarch.rpm
>> system-config-users-1.2.51-7.el5.rpm
>>
>> Do somebody have an idea for a solution
>>
> Run both commands from terminal and see what error is being reported.

Thak's to care,
For pirut I get:
Unable to import modules. Maybe yoy'r not running undr X?
But I'm under X with KDE

For system-config-users I get:
Trace back (most recent call last):
File "/usr/share/system-config-users/system-config-users.py",linne 25, 
in?
import libuser
ImportError: no module name libuser

I checked and
libsepol-1.15.2-3.el5 is there
also /user/lib/libuser and .so , .so.1, .so.1.1.6 etc are there

If I type at command line import libuser I get the same reaction as running 
"system-config-users" the program seem to turn round but no execution and 
tnhen stop
But if I look in /etc/libuser.conf I see a line as:
# The default (/usr/lib*/libuser) is actually  correct
Do I have to think that the modules should be in /user/lib/libuser/  instead 
of  /usr/lib/


What should be my next move?
---
Michel Donais 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Jesus del Valle
>
> >> Yum auto update is not working too but I can update with command lin yum
> >> update
> >>
>import libuser
> ImportError: no module name libuser
>
> Hi. Both the issue and the message are similar to some errors I receive if
I forget to change to CentOS default Python before using yum & Co. You
probably already checked for this but anyway: Do you have more than one
Python intallation, or did you compile Python from source, or used a
package that installed a Non-CentOS-default Python version?
Regards,
Jesus
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Michel Donais
>> >> Yum auto update is not working too but I can update with command lin 
>> >> yum
>> >> update
>> >>
>>import libuser
>> ImportError: no module name libuser
>>
>> Hi. Both the issue and the message are similar to some errors I receive 
>> if
> I forget to change to CentOS default Python before using yum & Co. You
> probably already checked for this but anyway: Do you have more than one
> Python intallation, or did you compile Python from source, or used a
> package that installed a Non-CentOS-default Python version?

Where should be default python
Packages are only installed by yum update usually CR but I also have some 
updates been made from epel but can't remember wich


---
Michel Donais 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Ljubomir Ljubojevic
On 05/06/2012 04:18 PM, Michel Donais wrote:
>> On 05/05/2012 03:44 AM, Michel Donais wrote:
>>> For some times I'm loosing graphical applications usage
>>> as pirut and system-config-users,
>>> Yum auto update is not working too but I can update with command lin yum
>>> update
>>>
>>> Versions instlalled
>>> pirut-1.3.28-19.el5.centos.noarch.rpm
>>> system-config-users-1.2.51-7.el5.rpm
>>>
>>> Do somebody have an idea for a solution
>>>
>> Run both commands from terminal and see what error is being reported.
>
> Thak's to care,
> For pirut I get:
> Unable to import modules. Maybe yoy'r not running undr X?
> But I'm under X with KDE
>
> For system-config-users I get:
> Trace back (most recent call last):
>  File "/usr/share/system-config-users/system-config-users.py",linne 25,
> in?
>  import libuser
> ImportError: no module name libuser
>
> I checked and
> libsepol-1.15.2-3.el5 is there
> also /user/lib/libuser and .so , .so.1, .so.1.1.6 etc are there
>
> If I type at command line import libuser I get the same reaction as running
> "system-config-users" the program seem to turn round but no execution and
> tnhen stop
> But if I look in /etc/libuser.conf I see a line as:
> # The default (/usr/lib*/libuser) is actually  correct
> Do I have to think that the modules should be in /user/lib/libuser/  instead
> of  /usr/lib/
>
>
> What should be my next move?
> ---

Try "yum reinstall libuser", or "yum install libuser"


-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Jesus del Valle
>
> Where should be default python
>
Hi Michel. Type python --version on the command prompt. CentOS 6.2 has
Python 2.6.6, CentOS 5.6, 5.7, 5.8 have Python 2.4.3. Epel should not have
installed a different python. Maybe you only need to reinstall the library
so Python recognizes it???
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Michel Donais
> Try "yum reinstall libuser", or "yum install libuser"

I already tried it with no results
actual re-installed version is 
libuser.i386 0:0.54.7-2.1.el5_5.2

I also have the same problem with graphical version of service


---
Michel Donais

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Jesus del Valle
>
> actual re-installed version is
> libuser.i386 0:0.54.7-2.1.el5_5.2
>
Hi Michel. Maybe something related to root / non-root? Or: Can you check
your Python version? Can you enter into Pythons cli (just type python) and
then type "import libuser"? If you don't get an error message, I don't
know. If you do, type "print (sys.path)", one of the paths should be
something like "/usr/lib/python2.4/site-packages/". After exiting the
python cli, you can check if your libusermodule.so can be found under this
path or one of python's sys.path?
Regards,
Jesus
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Michel Donais
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 "", line 1, in ?
NameError: name 'sys' is not defined

"here it seem that there is no path defined

= = = = = = = = = = = = = = = = = = = = = = = = = = = =
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
  File "", line 1
inport libuser
 ^
SyntaxError: invalid syntax
>>>
>>>
>>> print(sys.path)
Traceback (most recent call last):
  File "", line 1, in ?
NameError: name 'sys' is not defined
>>>


I think we are near a solution

---
Michel Donais
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Larry Martell
On Sun, May 6, 2012 at 3:45 PM, Michel Donais  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 "", 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 "", line 1
>    inport libuser
>                 ^
> SyntaxError: invalid syntax


 print(sys.path)
> Traceback (most recent call last):
>  File "", line 1, in ?
> NameError: name 'sys' is not defined

>
>
> I think we are near a solution
>
> ---
> Michel Donais
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Ljubomir Ljubojevic
On 05/06/2012 11:45 PM, Michel Donais wrote:
> inport libuser

its: import libuser, M instead of N

-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-06 Thread Michel Donais
>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
>>> print (sys.path)
Traceback (most recent call last):
  File "", 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@serveur ~]# su michel

[michel@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 "", 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@serveur root]$ >>> import sys
bash: syntax error near unexpected token `>'
[michel@serveur root]$ >>> print (sys.path)
bash: syntax error near unexpected token `>'
[michel@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@serveur root]$ >>> import libuser
bash: syntax error near unexpected token `>'
[michel@serveur root]$ >>>
bash: syntax error near unexpected token `>'

[michel@serveur root]$ [root@serveur ~]# su michel
[michel@serveur root]$ [michel@serveur root]$ python
bash: [michel@serveur: command not found
[michel@serveur root]$ Python 2.4.3 (#1, Feb 22 2012, 16:06:13)
bash: syntax error near unexpected token `('
[michel@serveur root]$ [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
bash: syntax error near unexpected token `('
[michel@serveur root]$ Type "help", "copyright", "credits" or "license" for
more information.
[michel@serveur root]$ >>> import libuser
bash: syntax error near unexpected token `>'
[michel@serveur root]$ >>> print (sys.path)
bash: syntax error near unexpected token `>'
[michel@serveur root]$ Traceback (most recent call last):
bash: syntax error near unexpected token `most'
[michel@serveur root]$   File "", line 1, in ?
bash: File: command not found
[michel@serveur root]$ NameError: name 'sys' is not defined
bash: NameError:: command not found
[michel@serveur root]$ >>> import sys
bash: syntax error near unexpected token `>'
[michel@serveur root]$ >>> print (sys.path)
bash: syntax error near unexpected token `>'
[michel@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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-07 Thread Jesus del Valle
>
> 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
>
Hi Michel. This is only to print a sys variable; you don't need to do
anything there. So your default python finds the libuser library, the error
you saw before with import libuser is not coming from this python, at least
as root. Does it make sense to remove pirut and re-install it? I don't use
it, I have absolutely no idea which consequences it may have removing and
reinstalling pirut for software that was already installed under pirut.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] loosing applications

2012-05-07 Thread Michel Donais
> Hi Michel. This is only to print a sys variable; you don't need to do
> anything there. So your default python finds the libuser library, the 
> error
> you saw before with import libuser is not coming from this python, at 
> least
> as root. Does it make sense to remove pirut and re-install it? I don't use
> it, I have absolutely no idea which consequences it may have removing and
> reinstalling pirut for software that was already installed under pirut.

It's already been done, uninstall and re-install pirut without success. The 
version removed end the re-installed one were at the same level

For Centos-5.8 I've a test machine both are at the same level of update.
If I do >>>print (sys.path) on the production machine, I get

>>> 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']

And on the test machine I get

>>> 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', 
'/usr/lib/python2.4/site-packages/Numeric', 
'/usr/lib/python2.4/site-packages/gtk-2.0']

If I refer at Larry Martell message, he pointed that the problem was with 
sys.path

If I look in ?usr/lib/python2.4/site-packages/
numeric in there on the test machine but absent on the production one

I tried to re-install  python-numeric.i386 0:23.7-2.2.2.el5_6.1 and nothig 
change; numeric is still not there

On these facts, can somebody point me a solution?

---
Michel Donais


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos