[Yum] yum error
Jeff Pitman
symbiont at berlios.de
Mon Oct 3 01:13:52 UTC 2005
On Monday 03 October 2005 08:11, Jani Partanen wrote:
> No module named cElementTree
>
> 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.1 (#1, Jun 21 2005, 02:38:47)
> [GCC 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)]
This is due to your system having Python 2.4.1. The system default for
Fedora Core 3 is Python 2.3.x. Your python-elementtree version only
installs into /usr/lib/python2.3/site-packages. Your /usr/bin/python
points to Python 2.4.1. /usr/bin/yum uses #!/usr/bin/python and
therefore cannot load and use the ElementTree libraries giving this
error and failing to continue.
You have a couple of options:
1. Make sure that /usr/bin/python points to python2.3.
2. Change #!/usr/bin/python in /usr/bin/yum to #!/usr/bin/python2.3.
3. Get elementtree for python 2.4. <-- You're bound to run into other
incompatibilities.
4. If you really want python2.4 and don't want to upgrade to FC4, then
you're welcome (shameless plug coming...) to use my repo here:
http://python.org/pyvault. See full disclosure before continuing.
--
-jeff
More information about the Yum
mailing list