I have spent several weeks and after several posts to Fedora Core mailing list, I am none the wiser, I understand the recomendation to reinstall, but this is expensive for me to do that because of software that I had help in building so I am hoping for one last ditch effort in case anyone knows something I could try ... I think my yum problems are related to my accidental removal of site-packages directory. I have tried to recover these but with no luck. Synaptic for me works OK. But I really want Yum to work. Can someone please help? [root@localhost rpm]# 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.2 (#3, Jan 31 2007, 17:36:26) [GCC 4.1.1 20070105 (Red Hat 4.1.1-51)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq [root@localhost rpm]# python Python 2.4.2 (#3, Jan 31 2007, 17:36:26) [GCC 4.1.1 20070105 (Red Hat 4.1.1-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import yum
Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named yum [root@localhost rpm]# rpm -qv rpm rpm-4.4.2-32 I have tried to re-build Python2.5 from tar source but I get "No module named yum." [root@localhost rpm]# 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.5 (r25:51908, Jan 30 2007, 16:15:17) [GCC 4.1.1 20070105 (Red Hat 4.1.1-51)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq ----And---- [root@localhost rpm]# python Python 2.5 (r25:51908, Jan 30 2007, 16:15:17) [GCC 4.1.1 20070105 (Red Hat 4.1.1-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import yum
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named yum
import rpm
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named rpm AND tried to see the following [root@localhost ~]# rpm --verify rpm-python [root@localhost ~]# rpm --verify yum [root@localhost ~]# rpm --verify python ....L... /usr/bin/python missing /usr/lib/python2.4/lib-old missing /usr/lib/python2.4/lib-old/Para.py missing /usr/lib/python2.4/lib-old/Para.pyc missing /usr/lib/python2.4/lib-old/Para.pyo missing /usr/lib/python2.4/lib-old/addpack.py missing /usr/lib/python2.4/lib-old/addpack.pyc missing /usr/lib/python2.4/lib-old/addpack.pyo missing /usr/lib/python2.4/lib-old/cmp.py missing /usr/lib/python2.4/lib-old/cmp.pyc missing /usr/lib/python2.4/lib-old/cmp.pyo missing /usr/lib/python2.4/lib-old/cmpcache.py missing /usr/lib/python2.4/lib-old/cmpcache.pyc missing /usr/lib/python2.4/lib-old/cmpcache.pyo missing /usr/lib/python2.4/lib-old/codehack.py missing /usr/lib/python2.4/lib-old/codehack.pyc missing /usr/lib/python2.4/lib-old/codehack.pyo missing /usr/lib/python2.4/lib-old/dircmp.py missing /usr/lib/python2.4/lib-old/dircmp.pyc missing /usr/lib/python2.4/lib-old/dircmp.pyo missing /usr/lib/python2.4/lib-old/dump.py missing /usr/lib/python2.4/lib-old/dump.pyc missing /usr/lib/python2.4/lib-old/dump.pyo missing /usr/lib/python2.4/lib-old/find.py missing /usr/lib/python2.4/lib-old/find.pyc missing /usr/lib/python2.4/lib-old/find.pyo missing /usr/lib/python2.4/lib-old/fmt.py missing /usr/lib/python2.4/lib-old/fmt.pyc missing /usr/lib/python2.4/lib-old/fmt.pyo missing /usr/lib/python2.4/lib-old/grep.py missing /usr/lib/python2.4/lib-old/grep.pyc missing /usr/lib/python2.4/lib-old/grep.pyo missing /usr/lib/python2.4/lib-old/lockfile.py missing /usr/lib/python2.4/lib-old/lockfile.pyc missing /usr/lib/python2.4/lib-old/lockfile.pyo missing /usr/lib/python2.4/lib-old/newdir.py missing /usr/lib/python2.4/lib-old/newdir.pyc missing /usr/lib/python2.4/lib-old/newdir.pyo missing /usr/lib/python2.4/lib-old/ni.py missing /usr/lib/python2.4/lib-old/ni.pyc missing /usr/lib/python2.4/lib-old/ni.pyo missing /usr/lib/python2.4/lib-old/packmail.py missing /usr/lib/python2.4/lib-old/packmail.pyc missing /usr/lib/python2.4/lib-old/packmail.pyo missing /usr/lib/python2.4/lib-old/poly.py missing /usr/lib/python2.4/lib-old/poly.pyc missing /usr/lib/python2.4/lib-old/poly.pyo missing /usr/lib/python2.4/lib-old/rand.py missing /usr/lib/python2.4/lib-old/rand.pyc missing /usr/lib/python2.4/lib-old/rand.pyo missing /usr/lib/python2.4/lib-old/tb.py missing /usr/lib/python2.4/lib-old/tb.pyc missing /usr/lib/python2.4/lib-old/tb.pyo missing /usr/lib/python2.4/lib-old/util.py missing /usr/lib/python2.4/lib-old/util.pyc missing /usr/lib/python2.4/lib-old/util.pyo missing /usr/lib/python2.4/lib-old/whatsound.py missing /usr/lib/python2.4/lib-old/whatsound.pyc missing /usr/lib/python2.4/lib-old/whatsound.pyo missing /usr/lib/python2.4/lib-old/zmod.py missing /usr/lib/python2.4/lib-old/zmod.pyc missing /usr/lib/python2.4/lib-old/zmod.pyo [root@localhost Python-2.5]# rpm --verify rpm prelink: /bin/rpm: at least one of file's dependencies has changed since prelinking S.?..... /bin/rpm prelink: /usr/bin/rpm2cpio: at least one of file's dependencies has changed since prelinking S.?..... /usr/bin/rpm2cpio prelink: /usr/lib/rpm/rpmd: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmd prelink: /usr/lib/rpm/rpmdb_archive: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_archive prelink: /usr/lib/rpm/rpmdb_checkpoint: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_checkpoint prelink: /usr/lib/rpm/rpmdb_deadlock: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_deadlock prelink: /usr/lib/rpm/rpmdb_dump: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_dump prelink: /usr/lib/rpm/rpmdb_load: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_load prelink: /usr/lib/rpm/rpmdb_printlog: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_printlog prelink: /usr/lib/rpm/rpmdb_recover: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_recover prelink: /usr/lib/rpm/rpmdb_stat: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_stat prelink: /usr/lib/rpm/rpmdb_svc: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_svc prelink: /usr/lib/rpm/rpmdb_upgrade: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_upgrade prelink: /usr/lib/rpm/rpmdb_verify: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmdb_verify prelink: /usr/lib/rpm/rpmfile: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmfile prelink: /usr/lib/rpm/rpmi: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmi prelink: /usr/lib/rpm/rpmk: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmk prelink: /usr/lib/rpm/rpmq: at least one of file's dependencies has changed since prelinking S.?..... /usr/lib/rpm/rpmq Any other ideas as to what I could try ...? - Seb _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum