Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-16-2009, 09:43 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 22

Rep: Reputation: 15
problem with python and yum... please read?!!!!!

i have another post on another forum but i have not got any answers yet to fix the problem so i going to post here.

here is a link to my original post if you want a background of whats going on

but ill still explain my problem. i was looking for a video converter to install and i found one but then when i tried to down load it i needed to install python 2.5 so i found the .rpm and i installed it now when i go my add/remove software it will not open because

enlightment was not ale to rum application /user/bin/pirut,

and when i go to the terminal almost everything i type in it ill get an error

/usr/bin/python: error while loading shared libraries: cannot open shared object file: No such file or directory

i got the rpm from ... c7.ppc.rpm and the link is the exact rpm that i installed

and yes i do have additional repos/protectbase.

and when i enter "# rm /usr/local/lib/python-2.5" as root i get

[root@localhost micah]# rm /usr/local/lib/python-2.5
rm: cannot lstat `/usr/local/lib/python-2.5': No such file or directory

when i enter whereis python-2.5 i get

[root@localhost micah]# whereis python-2.5
and i also tried whereis python-2.5-12 and i get

[root@localhost micah]# whereis python-2.5-12

i was looking in the other folders and i did find python2.5 without the - so what i did is i went to the terminal and entered "whereis python2.5-12" and what i got was

[root@localhost micah]# whereis python2.5-12
python2: /usr/bin/python2 /usr/bin/python2.5 /usr/bin/python2.5-config /usr/lib/python2.5 /usr/lib/python2.4 /usr/include/python2.4

i notice i have two versions which for 1 doesnt seems right to me so would that be causing the problem?

but ok so i did a little of playing around with most of the python files/folders, and i replaced them with new folders from the ydl 6.1 dvd just to see what would happened and when i go to add/remove software i get

unable to import modules. maybe your're not running under x?

and when i run the terminal as root and just enter yum i get

[root@localhost micah]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named rpm

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Aug 20 2008, 15:15:35)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]

If you cannot solve this problem yourself, please go to
the yum faq at:

any ideas of how i can fix that or whatever?i have had linux for a long time and everything was working fine until i tried to install the python rpm. even when i enter gedit i get errors.

can somebody help me please?

thank you

Old 02-17-2009, 09:14 AM   #2
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
do the following and give us the output
python then in the python prompt type import yum
if you get errors, you probably no longer have a sane module 'rpm'
Firstly, check /var/lib/rpm to see if you have the rest of the RPM
files. If not, then you're best off reinstalling.
Alternatively ,you can boot using the rescue CD (which should have RPM on it), and try installing the RPM rpm that way. You may need to use the --relocate and
the --badreloc flags.
Old 02-17-2009, 10:13 AM   #3
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I usually look for the library file, or something with at least the '2.5' part, or a larger number than 2.5, something like, and make a link to it like this:

Go to the directory where the real file is. Type:

rookie@debian $ ln -s ./ ./

Those truncated libraries are links. The install program just didn't make the exact link you needed. You can see which files are links using

ls -al


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum - cElementTree - Python WhatsOnYourBrain Fedora 17 03-24-2011 09:32 AM
Yum won't update Python Zeno McDohl Linux - Newbie 7 09-11-2008 03:04 PM
python messed up my yum c4nk Linux - Software 2 03-13-2007 01:03 AM
Problem with Python? Yum? Daenris Linux - Software 1 04-08-2005 10:31 AM
Yum problem: "Cannot open/read repomd.xml" archdev Fedora 2 01-29-2005 02:56 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 PM.

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