LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 06-10-2007, 10:13 PM   #1
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
libpython2.5.so not letting user mgmt work


Hello there.

I've been trying to get user management to work, but it tells me that there is a problem with libpython2.5.so. Here's the problem: 'Library files for "libpython2.5.so" not found in paths'.

It tells me there are 2 reasons why this could be happening. Either there was an error during the las KDE upgrade leaving an orphaned control module, or, that there are old third party modules lying around.

I now know what the problem is, but i can't find the commands to do this. I found these files in /usr/lib, and i don't see that particular file, so perhaps that's a start.

libpython2.4.so -> libpython2.4.so.1
libpython2.4.so.1 -> libpython2.4.so.1.0
libpython2.4.so.1.0
libpython2.5.so.1 -> libpython2.5.so.1.0
libpython2.5.so.1.0
libpythonize.so.0 -> libpythonize.so.0.0.0
libpythonize.so.0.0.0
 
Old 06-10-2007, 11:37 PM   #2
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
First thing I would try, is:

As root:

Code:
ln -s /usr/lib/libpython2.5.so.1.0 /usr/lib/libpython2.5.so
No guarantees that this will work, but it's worth a shot. This will create a symlink, libpython2.5.so pointing to libpython2.5.so.1.0.

Good luck.

LocoMojo
 
Old 06-21-2007, 01:46 AM   #3
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Creating the link didn't work. It already had that symbolic link there; i removed it and then linked as you suggested.

This happened after a distro-upgrade using apt-get, and i've never had this kind of problem. Perhaps something extra happened.

I can't tell if it's related, but also, the usual kubuntu splash screen does not show up when loading, and it takes an awful amount of time to load kubuntu now after the upgrade.

If you need any other info or have any other commands i should try, please let know. I can't wait to get it running perfectly.
 
Old 06-21-2007, 08:39 AM   #4
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
Quote:
Originally Posted by trebek
Creating the link didn't work. It already had that symbolic link there; i removed it and then linked as you suggested.

This happened after a distro-upgrade using apt-get, and i've never had this kind of problem. Perhaps something extra happened.

I can't tell if it's related, but also, the usual kubuntu splash screen does not show up when loading, and it takes an awful amount of time to load kubuntu now after the upgrade.

If you need any other info or have any other commands i should try, please let know. I can't wait to get it running perfectly.
Are you sure it was already there?

According to your original post you said you had:

Quote:
libpython2.4.so -> libpython2.4.so.1
libpython2.4.so.1 -> libpython2.4.so.1.0
libpython2.4.so.1.0
libpython2.5.so.1 -> libpython2.5.so.1.0
libpython2.5.so.1.0
libpythonize.so.0 -> libpythonize.so.0.0.0
libpythonize.so.0.0.0
I don't see a libpython2.5.so there.

After creating the symlink as I suggested, you would have:

Quote:
libpython2.5.so -> libpython2.5.so.1.0
Unfortunately, I don't know much about Kubuntu as I use Slackware so I couldn't tell you how your upgrade could have borked things.

You could try one other thing, though I'm not sure if this would help.

Verify your python path by opening up your shell then typing:

Quote:
you@yourmachine:$ python
>>> import sys
>>> print sys.path
Make sure that /usr/lib/python2.5 shows up there. If it isn't there then try editing your ~/.bashrc file as follows:

Quote:
export PYTHONPATH=$PATH:/usr/lib/python2.5
Then do(after exiting python):

Quote:
source ~/.bashrc
Then check python's sys.path again:

Quote:
you@yourmachine:$ python
>>> import sys
>>> print sys.path
If /usr/lib/python2.5 shows up, then try whatever it is you're trying to accomplish in the first place.

No guarantees here, but I hope it helps

If nothing seems to work, you could always try re-installing all your python packages from the Kubuntu repository.

Good luck!

LocoMojo
 
Old 06-21-2007, 11:53 PM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Hey there man. Thanks for the quick reply.

I did try that print sys.path and these lines are what i got in return (as you can notice, it did show the python2.5 line).

">>> print sys.path
['', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/var/lib/python-support/python2.5', '/var/lib/python-support/python2.5/gtk-2.0']
>>>
"

I didn't have to go through the later steps to get it to appear there. So i assume you'll suggest now to install all python files again.

Thanks man, really helpful indeed.
 
Old 06-22-2007, 06:46 AM   #6
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
Quote:
Originally Posted by trebek
Hey there man. Thanks for the quick reply.

I did try that print sys.path and these lines are what i got in return (as you can notice, it did show the python2.5 line).

">>> print sys.path
['', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/var/lib/python-support/python2.5', '/var/lib/python-support/python2.5/gtk-2.0']
>>>
"

I didn't have to go through the later steps to get it to appear there. So i assume you'll suggest now to install all python files again.

Thanks man, really helpful indeed.
Sorry I didn't actually help you resolve the problem.

All I can suggest now four things:

1. Double check for the /usr/lib/libpython2.5.so symlink.
2. Re-install all your python packages.
3. Re-compile and install the software you're trying to get working.
4. Find someone who is knowledgeable about these things to help you.

Again, I'm sorry I couldn't help you get any close to a solution. If and when you do finally get the solution, please post it here because I'm curious as to what the problem was.

Good luck!

LocoMojo
 
Old 06-22-2007, 03:24 PM   #7
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Ok, i removed the sym link that was there, and put it the one you suggested exactly as you typed it. After doing that, i noticed something different when trying to open ->system settings->user management: it no longer says that libpython is the problem anymore, i just tells me that the error maybe occurring because of a failed KDE upgrade that left an orphaned module or because i have third party modules lying around.

This can only mean that libpython is no longer the problem. Correct me if i'm wrong, but it looks that way now. I guess we've taken a step forward. Here's the output of ls -l libpython*:
lrwxrwxrwx 1 root root 17 2007-06-13 23:49 libpython2.4.so -> libpython2.4.so.1
lrwxrwxrwx 1 root root 19 2007-06-13 23:49 libpython2.4.so.1 -> libpython2.4.so.1.0
-rw-r--r-- 1 root root 1100248 2007-04-12 15:04 libpython2.4.so.1.0
lrwxrwxrwx 1 root root 28 2007-06-22 14:18 libpython2.5.so -> /usr/lib/libpython2.5.so.1.0
lrwxrwxrwx 1 root root 19 2007-06-10 20:59 libpython2.5.so.1 -> libpython2.5.so.1.0
-rw-r--r-- 1 root root 1249912 2007-05-02 10:58 libpython2.5.so.1.0
lrwxrwxrwx 1 root root 21 2007-06-13 23:48 libpythonize.so.0 -> libpythonize.so.0.0.0
-rw-r--r-- 1 root root 9996 2007-01-14 19:42 libpythonize.so.0.0.0

Does it look better to you now?

Thanks for the help man. I think that the problem is some place else now.
 
Old 06-22-2007, 04:36 PM   #8
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
Quote:
Originally Posted by trebek
Ok, i removed the sym link that was there, and put it the one you suggested exactly as you typed it. After doing that, i noticed something different when trying to open ->system settings->user management: it no longer says that libpython is the problem anymore, i just tells me that the error maybe occurring because of a failed KDE upgrade that left an orphaned module or because i have third party modules lying around.

This can only mean that libpython is no longer the problem. Correct me if i'm wrong, but it looks that way now. I guess we've taken a step forward. Here's the output of ls -l libpython*:
lrwxrwxrwx 1 root root 17 2007-06-13 23:49 libpython2.4.so -> libpython2.4.so.1
lrwxrwxrwx 1 root root 19 2007-06-13 23:49 libpython2.4.so.1 -> libpython2.4.so.1.0
-rw-r--r-- 1 root root 1100248 2007-04-12 15:04 libpython2.4.so.1.0
lrwxrwxrwx 1 root root 28 2007-06-22 14:18 libpython2.5.so -> /usr/lib/libpython2.5.so.1.0
lrwxrwxrwx 1 root root 19 2007-06-10 20:59 libpython2.5.so.1 -> libpython2.5.so.1.0
-rw-r--r-- 1 root root 1249912 2007-05-02 10:58 libpython2.5.so.1.0
lrwxrwxrwx 1 root root 21 2007-06-13 23:48 libpythonize.so.0 -> libpythonize.so.0.0.0
-rw-r--r-- 1 root root 9996 2007-01-14 19:42 libpythonize.so.0.0.0

Does it look better to you now?

Thanks for the help man. I think that the problem is some place else now.
Not that I think this would resolve the problem, but I noticed that I explained the symlinking wrong.

Do this as root:

cd /usr/lib
rm libpython2.5.so
ln -s libpython2.5.so.1.0 libpython2.5.so

That way you should end up with:

libpython2.5.so -> libpython2.5.so.1.0

instead of:

libpython2.5.so -> /usr/lib/libpython2.5.so.1.0

You do seem to be much closer to fixing the problem now. I can't be too sure, but it does seem as if you've at least fixed the libpython problem.

The user management thing you're trying to use, is that a KDE specific thing or is it Kubuntu specific? If it is KDE's, I can't seem to find it, where is it? If it is Kubuntu's, then I don't have it so I don't know what else to tell you at this point.

Hang in there, you'll finally fix it, I'm sure.

LocoMojo
 
Old 06-23-2007, 08:23 PM   #9
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Thanks for the reply, and yes, i do believe i am getting closer to fixing the problem.

1. In kubuntu, using KDE, you go to K Menu -> System Settings. Under Computer Administration, you have a User Management option. When i click there, that's when i get the problem. Before doing the symlink thing, i used to get the libpython error, but now i just get the rest of the text without libpython being mentioned.

So perhaps the problem now could be a KDE thing after the upgrade. I don't want to perform anymore upgrades, dist-upgrades that is. I usually get a lot of things that were working, messed up afterwards.

Thanks for the help man, you seem really knowledgeable.
 
Old 06-24-2007, 02:31 PM   #10
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
You seem to have both Python 2.4 and 2.5. For desktop packages based on Python to work, they need modules in the directory site-packages. So, compare the contents of /usr/lib/python2.5/site-packages/ with /usr/lib/python2.4/site-packages/ . If they're roughly the same, then this is probably not a problem. But if the 2.5 site-packages directory is empty, this might be your problem.
 
Old 06-24-2007, 04:11 PM   #11
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Well, thanks for the tip.

I compared both paths, and indeed, 2.5 directory has a lot less files than 2.4 directory. It's not empty but you can tell even with an untrained eye that the folder has a lot of files missing.

What do you say i install python 5 again. I have a vague impression that i suggested once to go ahead and un-install libpython, but someone said that it could break more things than it would fix by re-installing.

Maybe libpython4 is still there because it didn't get removed when the upgrade to 5 was performed, but the installation for 5 got messed up. So i guess it would be the right choice to reinstall libpython 5 again. What do you guys think?

 
Old 06-24-2007, 07:56 PM   #12
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
If it's a problem with what's in site-packages, reinstalling python is not going to help, Python ships with an empty site-packages directory. Other packages deposit things in that directory when they are installed.
 
Old 06-25-2007, 01:37 AM   #13
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Ok.

So, what's the workaround?
 
Old 06-25-2007, 02:03 AM   #14
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Maybe there's no workaround. I don't know. I have both Python 2.4 and 2.5, also, and I have arranged that both directories in question are exactly the same -- /usr/lib/python2.5/site-packages is a soft link to /usr/lib/python2.4/site-packages. I'm not recommending this arrangement -- I think it is very unlikely to work.
 
Old 06-25-2007, 02:23 AM   #15
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 253

Rep: Reputation: 36
When I have a problem like this, the first thing I do is, actually find for 100% without a doubt where the error is coming from, before I try to fix anything. Alot of programs complain and report error messages that have little if anything to do with the real, underlying problem.

I don't run the OP's distro, but it sounds like you're using some graphical wrapper around basic system commands. This is likely a script, which you can find and walk thru to see if it's doing anything wacky or asking for one thing then complaining about another. If it's a program, it can be strace'ed for similar results. In short, find out exactly what (line of code, library load, etc) is generating the error string, then start there. Sometimes plugging exact error strings into Google as a search topic will yield up people (and maybe therefor answers) with the same trouble you're seeing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libpython2.4.so.1.0 taylorchase Linux - Software 2 05-10-2007 05:32 PM
Suse 10 not letting user login raxxal Suse/Novell 59 05-23-2006 05:24 PM
iptables letting sendmail work zepplin611 Linux - Security 12 07-19-2004 10:30 AM
Letting normal user change apache directory nivek7 Linux - General 9 05-04-2004 06:58 PM
SuSE 8.1 Pro: User & Group Mgmt work as in Manual? Jim-BobH Linux - Newbie 0 10-07-2003 03:49 PM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration