'module' object has no attribute 'RPMSENSE_GREATER'

T.C. Hollingsworth tchollingsworth at gmail.com
Tue Feb 11 00:14:00 UTC 2014


On Sun, Feb 9, 2014 at 8:24 PM, Stephen Davies <sdavies at sdc.com.au> wrote:
> File "/usr/local/lib/python2.7/site-packages/yum/__init__.py", line 55, in

Notice the /usr/local above?  That means you have another Python
installation on your system that is getting used over the system
Python, which can cause all kinds of trouble, including the errors
you're experiencing.

Try moving /usr/local/bin/python out of the way if it exists and make
sure there's no $PYTHONPATH set in your environment.

If that fails try reinstalling rpm and rpm-python:
sudo rpm -Uvh --replacepkgs \
http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/17/x86_64/rpm-4.9.1.3-8.fc17.x86_64.rpm
\
http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/17/x86_64/rpm-libs-4.9.1.3-8.fc17.x86_64.rpm
\
http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/17/x86_64/rpm-python-4.9.1.3-8.fc17.x86_64.rpm

-T.C.


More information about the users mailing list