My yum got hosed after installing some faulty test packages...it dies with an "ImportError: No module named rpm" when I try to run it. As this was a couple months back, I imagine there are decent packages out now.
What packages would anyone suggest I reinstall (from rpm) to fix this? I'm guessing something python-related, but I'm not certain what. Thanks.
On Wed, 2 Feb 2005 cam@apt2324.com wrote:
My yum got hosed after installing some faulty test packages...it dies with an "ImportError: No module named rpm" when I try to run it. As this was a couple months back, I imagine there are decent packages out now.
What packages would anyone suggest I reinstall (from rpm) to fix this? I'm guessing something python-related, but I'm not certain what. Thanks.
when yum breaks - try 'up2date'.. Or else 'apt' :) [in case of python related breakages]
Satish
On Wed, 2 Feb 2005 13:43:48 -0600, cam@apt2324.com cam@apt2324.com wrote:
What packages would anyone suggest I reinstall (from rpm) to fix this? I'm guessing something python-related, but I'm not certain what. Thanks.
I'd imagine you installed the 2.4 python from the development tree and did not update yum and/or its dependancies from the development tree. fc3 has python 2.3 and the directories where python modules exist are python version specific. You install python 2.4 and python no longer sees the modules in the 2.3 directories.
SO check your installed python version check the yum version check the version of all the packages yum depends on
compare those versions against the versions in the fc3 tree and the development tree... and make sure you have a consistent set.
-jef
On Wed, 2005-02-02 at 15:20 -0500, Jeff Spaleta wrote:
On Wed, 2 Feb 2005 13:43:48 -0600, cam@apt2324.com cam@apt2324.com wrote:
What packages would anyone suggest I reinstall (from rpm) to fix this? I'm guessing something python-related, but I'm not certain what. Thanks.
I'd imagine you installed the 2.4 python from the development tree and did not update yum and/or its dependancies from the development tree. fc3 has python 2.3 and the directories where python modules exist are python version specific. You install python 2.4 and python no longer sees the modules in the 2.3 directories.
SO check your installed python version check the yum version check the version of all the packages yum depends on
compare those versions against the versions in the fc3 tree and the development tree... and make sure you have a consistent set.
I'm seeing the same thing and I've just done a fresh install of FC3 and then started trying to update to development.
So far I've run:
yum update yum
I then had to do a little manual installation of the packages downloaded because yum decided for some reason no to actually install the packages. Packages included in this upgrade were:
slib-3a1-2.noarch.rpm readline-* python-2.4-3.i386.rpm lvm2-2.01.03-1.0.i386.rpm bc-1.06-18.i386.rpm ftp-0.17-24.i386.rpm lftp-3.0.13-1.i386.rpm parted-1.6.21-1.i386.rpm cadaver-0.22.2-1.i386.rpm samba-client-3.0.10-4.i386.rpm ntp-4.2.0.a.20040617-6.i386.rpm pilot-link-0.11.8-10.i386.rpm guile-1.6.4-18.i386.rpm python-devel-2.4-3.i386.rpm pilot-link-devel-0.11.8-10.i386.rpm gphoto2-2.1.5-3.i386.rpm alchemist-1.0.35-1.i386.rpm samba-common-3.0.10-4.i386.rpm python-ldap-2.0.1-3.i386.rpm db4-* device-mapper-1.01.00-1.i386.rpm perl-5.8.6-3.i386.rpm gimp-print-utils-4.2.7-4.i386.rpm cdecl-2.5-31.i386.rpm system-config-printer-* gnome-python2-* pyparted-1.6.9-2.i386.rpm libxml2-* pam-* sendmail-8.13.3-1.i386.rpm openoffice.org-* dmraid-1.0.0.rc5f-3.i386.rpm yum-2.1.13-1.noarch.rpm compat-db-4.2.52-2.i386.rpm compat-readline43-4.3-1.i386.rpm
(sorry about the *, this is a cut and paste from a rpm -Fvh effort).
I also had to remove pam-ccreds and then install it again using the version from development after installing the compat-* packages.
It might be worth noting that during the install I got the following output: (note the error after installing system-config-printer)
Preparing... ########################################### [100%] 1:readline ########################################### [ 2%] 2:libxml2 ########################################### [ 5%] 3:db4 ########################################### [ 7%] 4:python ########################################### [ 9%] 5:perl ########################################### [ 12%] 6:pam warning: /etc/pam.d/system-auth created as /etc/pam.d/system-auth.rpmnew ########################################### [ 14%] 7:alchemist ########################################### [ 16%] 8:parted ########################################### [ 19%] 9:readline-devel ########################################### [ 21%] 10:pilot-link ########################################### [ 23%] 11:device-mapper ########################################### [ 26%] 12:pyparted ########################################### [ 28%] 13:system-config-printer ########################################### [ 30%] Traceback (most recent call last): File "/usr/share/printconf/util/updateconf.py", line 29, in ? import printconf_conf as conf File "/usr/share/printconf/util/printconf_conf.py", line 83, in ? from xml.utils import qp_xml ImportError: No module named utils 14:samba-common ########################################### [ 33%] 15:lftp ########################################### [ 35%] 16:guile ########################################### [ 37%] 17:gphoto2 ########################################### [ 40%] 18:samba-client ########################################### [ 42%] 19:python-ldap ########################################### [ 44%] 20:lvm2 ########################################### [ 47%] 21:dmraid ########################################### [ 49%] 22:pilot-link-devel ########################################### [ 51%] 23:pam-devel ########################################### [ 53%] 24:python-devel ########################################### [ 56%] 25:libxml2-devel ########################################### [ 58%] 26:libxml2-python ########################################### [ 60%] 27:db4-devel ########################################### [ 63%] 28:db4-utils ########################################### [ 65%] 29:sendmail ########################################### [ 67%] 30:gnome-python2-bonobo ########################################### [ 70%] 31:gnome-python2-gtkhtml2 ########################################### [ 72%] 32:bc ########################################### [ 74%] 33:ftp ########################################### [ 77%] 34:cadaver ########################################### [ 79%] 35:ntp ########################################### [ 81%] 36:gimp-print-utils ########################################### [ 84%] 37:cdecl ########################################### [ 86%] 38:openoffice.org-i18n ########################################### [ 88%] 39:gnome-python2-canvas ########################################### [ 91%] 40:gnome-python2 ########################################### [ 93%] 41:openoffice.org-libs ########################################### [ 95%] 42:openoffice.org ########################################### [ 98%] 43:system-config-printer-g########################################### [100%] [rodd@trevally packages]$
Now when I try to run yum i get:
[rodd@trevally packages]$ sudo yum update Traceback (most recent call last): File "/usr/bin/yum", line 6, in ? import yummain File "/usr/share/yum-cli/yummain.py", line 23, in ? import yum File "__init__.py", line 21, in ? ImportError: No module named rpm [rodd@trevally packages]$
Given that all these packages were downloaded as a result of updating yum using yum from development, I'd be keen to know what yum failed to include that it should have.
Rodd
On Thu, 2005-02-03 at 17:19 +1100, Rodd Clarkson wrote: ...
Now when I try to run yum i get:
[rodd@trevally packages]$ sudo yum update Traceback (most recent call last): File "/usr/bin/yum", line 6, in ? import yummain File "/usr/share/yum-cli/yummain.py", line 23, in ? import yum File "__init__.py", line 21, in ? ImportError: No module named rpm [rodd@trevally packages]$
I recognize this. I ran into it a little while back when trying to upgrade a box that had too little disk space to do it all at once. Turns out that somewhere in the RPM/yum stack there's an SELinux dependency that shows up at runtime. I don't really know what's going on, but at least for me it went away after updating libselinux. (Of course, since both yum and up2date use the rpm Python bindings and a simple "import rpm" in yum is what dies, well, they're both hosed at the moment so you'll have to download and 'rpm -Uvh' that package manually.)
Turns out we're not the only ones to hit this, it's in bugzilla: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144446
Good luck, Per
I ran into this problem aswell, and fixed it by installing python, rpm, and yum from the development tree.
[root@DONut ~]# rpm -qa |grep --regexp="yum" --regexp="rpm" --regexp="python" gnome-python2-2.6.0-4 dbus-python-0.22-12 rpm-python-4.3.3-8 gnome-python2-bonobo-2.6.0-4 redhat-rpm-config-8.0.32-2 python-2.4-3 libxml2-python-2.6.16-5 gnome-python2-gtkhtml2-2.6.0-4 rpm-4.3.3-8 mod_python-3.1.3-7 rpm-build-4.3.3-8 gnome-python2-canvas-2.6.0-4 rpm-libs-4.3.3-8 rpm-devel-4.3.3-8 yum-2.1.12-2 python-devel-2.4-3
Per Bjornsson wrote:
On Thu, 2005-02-03 at 17:19 +1100, Rodd Clarkson wrote: ...
Now when I try to run yum i get:
[rodd@trevally packages]$ sudo yum update Traceback (most recent call last): File "/usr/bin/yum", line 6, in ? import yummain File "/usr/share/yum-cli/yummain.py", line 23, in ? import yum File "__init__.py", line 21, in ? ImportError: No module named rpm [rodd@trevally packages]$
I recognize this. I ran into it a little while back when trying to upgrade a box that had too little disk space to do it all at once. Turns out that somewhere in the RPM/yum stack there's an SELinux dependency that shows up at runtime. I don't really know what's going on, but at least for me it went away after updating libselinux. (Of course, since both yum and up2date use the rpm Python bindings and a simple "import rpm" in yum is what dies, well, they're both hosed at the moment so you'll have to download and 'rpm -Uvh' that package manually.)
Turns out we're not the only ones to hit this, it's in bugzilla: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144446
Good luck, Per
On Wed, 2005-02-02 at 23:02 -0800, Per Bjornsson wrote:
On Thu, 2005-02-03 at 17:19 +1100, Rodd Clarkson wrote: ...
Now when I try to run yum i get:
[rodd@trevally packages]$ sudo yum update Traceback (most recent call last): File "/usr/bin/yum", line 6, in ? import yummain File "/usr/share/yum-cli/yummain.py", line 23, in ? import yum File "__init__.py", line 21, in ? ImportError: No module named rpm [rodd@trevally packages]$
I recognize this. I ran into it a little while back when trying to upgrade a box that had too little disk space to do it all at once. Turns out that somewhere in the RPM/yum stack there's an SELinux dependency that shows up at runtime. I don't really know what's going on, but at least for me it went away after updating libselinux. (Of course, since both yum and up2date use the rpm Python bindings and a simple "import rpm" in yum is what dies, well, they're both hosed at the moment so you'll have to download and 'rpm -Uvh' that package manually.)
Turns out we're not the only ones to hit this, it's in bugzilla: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144446
Thanks! That fixed it.
Rodd