Public bug reported:
Binary package hint: yum
I am trying to write out an Linux training course for system
administrators. I am aiming to be distribution neutral. For this matter,
I intend to tackle both yum and apt-get. I am running Ubuntu 8.04
desktop and am intending to demonstrate usage of both yum and apt-get.
Demonstration units will be running 8.04 server. I will be demonstrating
the use of both yum and rpm. However, the yum coming from the apt
repositories fails.
===sample command
[EMAIL PROTECTED]:~$ sudo yum install fluxbox
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
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.5.2 (r252:60911, Apr 21 2008, 11:17:30)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
If you cannot solve this problem yourself, please send this
message to <[EMAIL PROTECTED]>.
===
The package in question is python-celementtree. It is installed on my unit
under python2.4.
===verifying existence of cElementTree
[EMAIL PROTECTED]:~$ ls /usr/lib/python2.4/site-packages/cElementTree*
/usr/lib/python2.4/site-packages/cElementTree.so
/usr/lib/python2.4/site-packages/cElementTree-1.0.5_20051216-py2.4.egg-info:
dependency_links.txt PKG-INFO SOURCES.txt top_level.txt
===
my celementtree version is also posted below.
What appears to happen is that yum tries to run under python2.5 and then
fails to find its dependencies.
What should happen is one of the following:
1) that yum runs under python2.4 and finds it dependencies
2) that celementtree has a python2.5 version (possibly not possible/compatible)
Some possible solutions/workarounds to the problem are
1) python alternatives system in debian has to be rethinked/developed to allow
individual packages to select versions of python to run. (Does python have
native working of this?) (possibly debian python bug)
2) python itself needs to allow individual packages to select versions of
python to run. (see above) (possibly python feature request)
3) yum debian package needs to be smart enough to depend on and use the python
version it works on.
4) edit #!/usr/bin/python -> #!/usr/bin/python2.4 in /usr/bin/yum and yum-arch
executables. Quick and dirty solution, but it works and is the workaround I
used.
What should not happen is
1) user is told to change global python requirement to python2.5. This is a
wrong solution. User may prefer python2.5 for most packages but need python2.4
I need further advise as to how to report this problem as it touches
different packages, but yum seems to be the closest logical choice.
=== bug report requirements.
Ubuntu version:
[EMAIL PROTECTED]:~$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
Package versions:
yum:
Installed: 2.4.0-3.1
Candidate: 2.4.0-3.1
Version table:
*** 2.4.0-3.1 0
500 http://ph.archive.ubuntu.com hardy/universe Packages
100 /var/lib/dpkg/status
python-celementtree:
Installed: 1.0.5-9
Candidate: 1.0.5-9
Version table:
*** 1.0.5-9 0
500 http://ph.archive.ubuntu.com hardy/universe Packages
100 /var/lib/dpkg/status
python:
Installed: 2.5.2-0ubuntu1
Candidate: 2.5.2-0ubuntu1
Version table:
*** 2.5.2-0ubuntu1 0
500 http://ph.archive.ubuntu.com hardy/main Packages
100 /var/lib/dpkg/status
python2.4:
Installed: 2.4.5-1ubuntu4
Candidate: 2.4.5-1ubuntu4
Version table:
*** 2.4.5-1ubuntu4 0
500 http://ph.archive.ubuntu.com hardy/main Packages
100 /var/lib/dpkg/status
** Affects: yum (Ubuntu)
Importance: Undecided
Status: New
--
yum seems to depend on python2.4, but agrees with python2.5
https://bugs.launchpad.net/bugs/238013
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs