YUM no module named yum
Hi all
I tried to do an uprade on Kino with YUM and it come up with the message below. I have used yum lots of times the last couple of months reasonably successfully but painfully slow on dial up. 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 yum 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:22) [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 To get Tovid to work I had to do something with phyton and links. Tovid works but maybe I stuffed something u. Can I reinstall yum off my FC5 DVD? Look forward to any help you can give on this one gimmee |
Download the source rpm file for yum from Fedora Core 5 updates site and as root build the new binary package then install it (you do not need the devel and debug rpm packages).
http://download.fedora.redhat.com/pu...-0.fc5.src.rpm rpmbuild --rebuild --recompile --define 'dist .fc5' yum-2.6.1-0.fc5.rpm |
Hi there
Thanks for that reply. Just on the rpmbuild command what does --define 'dist .fc5' do and do I have to change it for 64bit FC5 Cheers |
No you do not have change it for 64-bit. The define 'dist .fc5' adds the fc5 extension or what you specify to the package filenames. If you have a look at the spec file, you would see a line like; Release: 0.2%{?dist}
|
Hi there
I get this long error root@localhost temp]# rpm -ivh yum-2.6.1-0.fc5.noarch.rpm Preparing... ########################################### [100%] file /usr/lib/python2.4/site-packages/repomd/__init__.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/__init__.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/mdErrors.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/mdErrors.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/mdUtils.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/mdUtils.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/packageObject.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/packageObject.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/packageSack.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/packageSack.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/repoMDObject.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/repoMDObject.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/test.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/repomd/test.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/__init__.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/__init__.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/arch.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/arch.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/miscutils.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/miscutils.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/oldUtils.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/oldUtils.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/transaction.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/transaction.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/updates.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/rpmUtils/updates.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/Errors.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/Errors.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/__init__.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/__init__.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/__init__.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/comps.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/comps.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/config.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/config.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/config.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/constants.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/constants.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/depsolve.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/depsolve.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/failover.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/failover.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/logger.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/logger.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/mdcache.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/mdcache.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/mdparser.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/mdparser.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/misc.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/misc.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/packages.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/packages.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/parser.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/parser.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/pgpmsg.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/pgpmsg.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/plugins.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/plugins.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/repos.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/repos.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/repos.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/sqlitecache.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/sqlitecache.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/sqlitesack.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/sqlitesack.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/sqlitesack.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/transactioninfo.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/transactioninfo.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/update_md.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/python2.4/site-packages/yum/update_md.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/yum-plugins/installonlyn.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/yum-plugins/installonlyn.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/lib/yum-plugins/installonlyn.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/man/man8/yum.8.gz from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/callback.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/callback.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/cli.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/cli.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/cli.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/i18n.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/i18n.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/output.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/output.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/output.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/progress_meter.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/progress_meter.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/pullheaders.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/pullheaders.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/serverStuff.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/serverStuff.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/shell.py from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/shell.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/shell.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/translate.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/translate.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/yummain.pyc from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 file /usr/share/yum-cli/yummain.pyo from install of yum-2.6.1-0.fc5 conflicts with file from package yum-2.6.0-1 [root@localhost temp]# Any help muchly appreciated Gimmee :):) |
Try one of the following;
rpm -Uvh yum-2.6.1-0.fc5.noarch.rpm --replacefiles rpm -Uvh yum-2.6.1-0.fc5.noarch.rpm --replacepkgs rpm -Uvh yum-2.6.1-0.fc5.noarch.rpm --oldpackage rpm -Uvh yum-2.6.1-0.fc5.noarch.rpm --force |
Hi there
Finally got it all working. I installed yum using rpm -Uvh yum-2.6.1-0.fc5.noarch.rpm Started yum and it got a little further but complained about missing something called elementtree. I queried it rpm -q elementtree, and it was installed but from a few messages on the net I found out the following and I ended up removing rpm -e pirut rpm -e yumex rpm -e yum rpm -e python-urlgrabber rpm -e python-sqlite rpm -e python-elementtree I then rebooted. Ah still got those bad window habits. Downloaded the latest of the above (except pirut and yumex) and installed rpm -Uvh python-elementtree rpm -Uvh python-sqlite rpm -Uvh python-urlgrabber rpm -Uvh yum Ya yum working again Thanks for all the help |
Thanlks the -e and then reinstall helped fix an issue I had with dependencies installing but yum not working once launched...
|
All times are GMT -5. The time now is 03:39 AM. |