'module' object has no attribute 'RPMSENSE_GREATER'

Stephen Davies sdavies at sdc.com.au
Wed Feb 12 02:14:42 UTC 2014


The /usr/local/bin version of python came from my manually building and 
installing Python 2.7.6 as part of my attempts to build FreeCAD.

If I hide all of the /usr/local/bin and /usr/local/lib Python components, the 
original is unable to find modules - even if I set PYTHONPATH and PYTHONHOME.

Among other things, this breaks my Apache httpd setup.

Reverting to the /usr/local versions gets everything except yum working.

I then attempted to folow your suggestion re reinstalling rpm.

Unfortunately, that fails due to dependencies.

After some 22 years playing with (and contributing to) Linux, I should know 
rpm better - but I don't know how to safely overcome the following:

[root at mustang downloads]# rpm -Uvh --replacepkgs rpm-4.9.1.3-8.fc17.x86_64.rpm 
warning: rpm-4.9.1.3-8.fc17.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 
1aca3465: NOKEY
error: Failed dependencies:
	rpm = 4.9.1.3-6.fc17 is needed by (installed) rpm-
libs-4.9.1.3-6.fc17.x86_64
	rpm = 4.9.1.3-6.fc17 is needed by (installed) rpm-
python-4.9.1.3-6.fc17.x86_64
	rpm = 4.9.1.3-6.fc17 is needed by (installed) rpm-
build-4.9.1.3-6.fc17.x86_64
	rpm = 4.9.1.3-6.fc17 is needed by (installed) rpm-
devel-4.9.1.3-6.fc17.x86_64

Cheers and thanks,
Stephen

On Monday, February 10, 2014 05:14:00 PM T.C. Hollingsworth wrote:
> 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-l
> ibs-4.9.1.3-8.fc17.x86_64.rpm \
> http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/17/x86_64/rpm-p
> ython-4.9.1.3-8.fc17.x86_64.rpm
> 
> -T.C.
-- 
=============================================================================
Stephen Davies Consulting P/L                           Phone: 08-8177 1595
Adelaide, South Australia.                                Mobile:040 304 0583
Records & Collections Management.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140212/d79a37a4/attachment.html>


More information about the users mailing list