Re: Yum and Python... something is broke

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

 



Poohba wrote:
I am using FC5.

I seem to have two pythons installed.  One in /usr/local/bin and one
in /usr/bin

[10:42:38 root@~]/usr/local/bin/python
Python 2.0.1 (#1, Jul 12 2006, 18:03:04)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
Type "copyright", "credits" or "license" for more information.
import yum
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named yum
[10:42:53 root@~]/usr/bin/python
Python 2.3.5 (#1, Aug 25 2005, 09:17:42)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import yum
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named yum

Try renaming /usr/local/bin/python to /usr/local/bin/python2.0 so that all of the system scripts that are built for python 2.4 don't find your local python 2.0 instead. You'll need to tweak whatever it is that you have python 2.0 for to use "python2.0" instead of "python".

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux