Re: Error: cannot import name RpmUtilsError after last RHEL 5.x upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Downloaded and installed yum and rpm-python packages from latest RHEL 5.3 that I had on another server and everything is working fine now. Anyway, Thanks for your help.

Regards,
Esteban.-


2009/3/5 James Antill <james-yum@xxxxxxx>
"Esteban B." <shakauy@xxxxxxxxx> writes:

> Hello,
>
> This is the problem - After lastest upgrade from RHEL 5.2 to RHEL 5.3 i'm
> not able to use Yum anymore, this is what I got:
>
> [root@xxxxxxxxxxxxxxxxxxx:~]*yum check-update*
> There was a problem importing one of the Python modules
> required to run yum. The error leading to this problem was:
>
> *   cannot import name RpmUtilsError*
>
> 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, Sep 17 2008, 16:04:01)
> [GCC 4.1.2 20071124 (Red Hat 4.1.2-41)]
>
> If you cannot solve this problem yourself, please go to
> the yum faq at:
>   http://wiki.linux.duke.edu/YumFaq
>
>
> Tried loading the module manually from python, and seems to be the same:
>
> [root@xxxxxxxxxxxxxxxxxxx:~]python
> Python 2.4.3 (#1, Sep 17 2008, 16:04:01)
> [GCC 4.1.2 20071124 (Red Hat 4.1.2-41)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import RpmUtilsError
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named RpmUtilsError
>>>>
> [root@xxxxxxxxxxxxxxxxxxx:~]

 The line that's failing will be this one:

from rpmUtils import RpmUtilsError

...so you could see if/who that also fails from python. But this
implies that the install of yum itself is broken. You can try:

 rpm -q yum
 rpm -V yum
 rpm -Va --nofiles --nomd5

...or just force a reinstall of the yum package with rpm and see if
that helps (at which point you can run package-cleanup and
yum-complete-transaction etc. to see if they find anything).

--
James Antill -- james@xxxxxxx
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum



--
TecnoMagazine.net - Noticias de Tecnología, Gadgets, Teléfonos móviles y mucho más!
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux