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@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@xxxxxxxxxx> 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.
|
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org