FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
hi. something i installed w/ Yum caused yum to stop working. the error is:
Code:
@localhost ~]$ 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 cElementTree
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, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
when i went to the YumFaq, i found related info, and upon executing the suggestions there:
Code:
@localhost ~]$ python
Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 35, in ?
import comps
File "/usr/lib/python2.4/site-packages/yum/comps.py", line 18, in ?
from cElementTree import iterparse
ImportError: No module named cElementTree
You can find the latest installed software with "rpm -qa --last" and uninstall it(if rpm packages were installed)
OR
You could try removing yum with rpm -e yum, then downloading the latest package from http://rpm.pbone.net/index.php3/stat...oarch.rpm.html
and installing it with rpm -i yum-2.6.1-0.fc5.noarch.rpm
If it doesn't install, atleast it will tell you what dependencies it is missing, which again could be downloaded & installed
Edit -(Got from another forum) to get yum to work install these from same repository
how does one go about "[installing] these from same repository"?
i don't know the syntax... it may look like i do from things i've quoted here, but those are usually directly copied from other sites. i'm not sure how to just do it based on the names of the files. (sorry. it's the thickness of my skull getting in the way...)
thanks!
and thanks, sn68 for finding this for me! very awesome!!
EDIT: from additional research, i've tried this -- what should i do... rpm -e everything listed here?
Code:
[root@localhost ~]# rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/yum-2.6.1-0.fc5.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/yum-2.6.1-0.fc5.noarch.rpm
Preparing... ########################################### [100%]
package yum-2.6.1-0.fc5 is already installed
[root@localhost ~]# rpm -e yum
error: Failed dependencies:
yum >= 2.5.3 is needed by (installed) pirut-1.0.3-0.fc5.noarch
yum >= 2.4 is needed by (installed) yumex-1.0.2-1.0.fc5.noarch
yum is needed by (installed) mach-0.9.0-1.fc5.i386
yum >= 2.2.0 is needed by (installed) kyum-0.7.5-3.fc5.i386
[root@localhost ~]#
Last edited by WhatsOnYourBrain; 09-20-2006 at 08:12 AM..
To uninstall yum you will need to uninstall yumex, pirut, kyum & mach (these can be installed once you get your yum going) so once you uninstall these and python-urlgrabber, python-sqlite, python-elementtree, you can download these packages from fedora download site or http://rpm.pbone.net and install with rpm.
(rpm -e packagename, do man rpm at terminal to get more info & press q to exit man pages)
Before you start working with yum, you will need to disable one of the conflicting repositories.Can you post what all repositories you have installed? (contents of /etc/yum.repos.d/)
sorry about the permissions and all-- but i thought perhaps the dates there would serve to show what i've customized since i installed this drive after my primary drive became inaccessible not even a week ago.
since my last post here, i've done the following, and am currently in this state at the time of posting:
Code:
[root@localhost ~]# rpm -e yum
error: Failed dependencies:
yum >= 2.5.3 is needed by (installed) pirut-1.0.3-0.fc5.noarch
yum >= 2.4 is needed by (installed) yumex-1.0.2-1.0.fc5.noarch
yum is needed by (installed) mach-0.9.0-1.fc5.i386
yum >= 2.2.0 is needed by (installed) kyum-0.7.5-3.fc5.i386
[root@localhost ~]# rpm -e pirut
[root@localhost ~]# rpm -e yumex
warning: /etc/yumex.profiles.conf saved as /etc/yumex.profiles.conf.rpmsave
[root@localhost ~]# rpm -e kyum
[root@localhost ~]# rpm -e mach
[root@localhost ~]# rpm -e yum
warning: /etc/yum.conf saved as /etc/yum.conf.rpmsave
[root@localhost ~]# rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/yum-2.6.1-0.fc5.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/yum-2.6.1-0.fc5.noarch.rpm
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[root@localhost ~]# yum install pirut
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named cElementTree
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, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
so where does this put me in the scheme of things that you had in mind, sn68? thanks for your help!!
Hi
Thanks for posting repositories. Apparently dries, rpmforge & livna repositories dont mix. So now disable dries.repo, rpmforge.repo. That will leave fedora-core, fedora-extras, fedora-updates, livna, freshrpms & macromedia repositories enabled
Thereafter uninstall following packages as well
Edit - To be on safer side disable all repos you installed on sep 17 & 18
To disable a repo, open terminal
>su
pwd
>gedit /etc/yum.repos.d/livna.repo
change "enabled=1" to "enabled=0"
cool...gotcha! hey, sn68, you do a real good job of helping. maybe it's coincidence, but maybe it's instinct too. what i mean is-- something about your inquiry and assessment allowed us to put aside whether i was educated enough about this stuff to pull it off or not (albeit, i suppose a real beginner might not have known how to post some of that stuff). it's not easy trying to make suggestions when you don't know what the other person knows (i speak from experience as a guitar instructor-- the most difficult assessment period being that of taking on a new student who already knows how to play. it's like "okay. do something. i've gotta figure out what you know; what you need to know, etc."... i dunno... just felt like mentioning that. something you might want to be attentive of and cultivate-- get a gig doing "e-Learning courses"!
anyway... very cool-- i'm going to check this stuff out, and see where it gets me! i'll post back n tell the results, but i really feel like we're on the right track! woo hoo!
(btw... look for a PM from me)
edit: oops... i guess there's no PM'ng here
Last edited by WhatsOnYourBrain; 09-21-2006 at 06:22 AM..
what to do when i get this?:
rpm -e python-urlgrabber
error: Failed dependencies:
urlgrabber is needed by (installed) yum-2.6.1-0.fc5.noarch
python-urlgrabber is needed by (installed) createrepo-0.4.6-1.fc3.rf.noarch
is there a way to "Force" it?
would that be rpm -e --force (appname)?
Last edited by WhatsOnYourBrain; 09-21-2006 at 06:10 AM..
Hi
Its good to know that we were able to get "yum" back on track, this particular "fault" so to say occured because incompatible packages were installed from repositories which should not have been used together.
More info at http://stanton-finley.net/fedora_cor...s.html#Warning
hey there-- i don't want to bother w/ this thread too much more-- but in case it might help someone else, plus i am a bit curious:
it might not have even been a day later that Yum quit working again-- same error. i've been going off of the StantonFinley rec. (ie. according to his list, to my knowledge, i guess that's using rpmforge instead of livna, and then freshrpms dries, and macromedia.)
this time i removed libstdc++so7.i386, which i installed because of a Firefox XPI i wanted. it was supposed to be libstdc++so5.i386, but that didn't show up specifically-- so i installed the libstdc++so7.i386 which warns that it's unstable and, in so many words, untrustable. it was after i first installed that item that yum first went down (probably not immediately after), but i forgot to uninstall it this past fix.
we'll see what happens now. i haven't enabled the "SF repos" yet, but i will cause they've never given me problems in the past. i just wanted to report that little bit.
2- Then remove the old installation and rebuild to old yum version (2.2.2.1)
>rpm -e yum
>rpmbuild --rebuild yum-2.2.2-1.src.rpm
>rpm -e python-urlgrabber
>rpm -i /usr/src/redhat/RPMS/noarch/yum-2.2.2-1.noarch.rpm
3- Update from DAG and play with /etc/yum.conf files
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.