Unable to run Yum in Edgy

Bug #71773 reported by noisymime
18
Affects Status Importance Assigned to Milestone
yum (Ubuntu)
Fix Released
Medium
Ralph Janke
Hardy
Won't Fix
Undecided
Unassigned

Bug Description

I've just performed a fresh Edgy install and apt-get install yum.

When I run yum however, I get the message:
"There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named urlgrabber"

If I then change /usr/bin/python to point to /usr/bin/python2.5 (rather than 2.4) I get the following when running yum:
"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"

Both the python-urlgrabber and python-celementtree are installed and at the newest version.

As this is a fresh install (Installing yum was the first thing I did after it completed) I believe this is a bug with the yum package rather than a configuration issue on my PC. I have also tried this install on another Edgy install and received the same error.

Revision history for this message
noisymime (josh-noisymime) wrote :

This appears to be related to Bug #71210 which deals with Edgy binary package not providing urlgrabber support for Python 2.4

Revision history for this message
Jon Topper (jon-topper) wrote :

I've been able to work around this problem by adding /usr/share/python-support/python-urlgrabber to my PYTHONPATH before running yum, though presumably there's a better fix to be had.

Revision history for this message
kgoeser (kevin-kevin-online) wrote :

I get the "No module named cElementTree" in gutsy, too. Setting the PYTHONPATH does not help, the package "urlgrabber" (suggested to be rebuild in Bug #71210 ) does not exist in gutsy.

Revision history for this message
Ralph Janke (txwikinger) wrote :

I can confirm this on hardy

Changed in yum:
assignee: nobody → txwikinger
status: New → Confirmed
Ralph Janke (txwikinger)
Changed in yum:
status: Confirmed → In Progress
Ralph Janke (txwikinger)
Changed in yum:
importance: Undecided → Medium
Revision history for this message
Daniel T Chen (crimsun) wrote :

What's the status on this report?

Revision history for this message
sadfub (sadfub) wrote :
Download full text (8.3 KiB)

This bug is still unfixed in Hardy (8.04):

me@host:~$aptitude install yum
[...]
me@host:~$ yum
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, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]

If you cannot solve this problem yourself, please send this
message to <email address hidden>.

but ATM I tested on Intrepid Ibex Alpha 5, and it seems to be ok... have a look:

ubuntu@ubuntu:~$ sudo aptitude install yum
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  libbeecrypt6{a} librpm4.4{a} python-celementtree{a} python-elementtree{a}
  python-pyme{a} python-rpm{a} python-sqlite{a} python-sqlitecachec{a}
  python-urlgrabber{a} rpm{a} yum
0 packages upgraded, 11 newly installed, 0 to remove and 372 not upgraded.
Need to get 2919kB of archives. After unpacking 11.9MB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://archive.ubuntu.com intrepid/main libbeecrypt6 4.1.2-7 [103kB]
Get:2 http://archive.ubuntu.com intrepid/main librpm4.4 4.4.2.3-1ubuntu1 [977kB]
Get:3 http://archive.ubuntu.com intrepid/universe python-elementtree 1.2.6-12 [27.4kB]
Get:4 http://archive.ubuntu.com intrepid/universe python-celementtree 1.0.5-10 [21.9kB]
Get:5 http://archive.ubuntu.com intrepid/universe python-pyme 0.8.0-2 [225kB]
Get:6 http://archive.ubuntu.com intrepid/universe python-sqlite 1.0.1-7 [35.4kB]
Get:7 http://archive.ubuntu.com intrepid/main python-urlgrabber 3.1.0-4 [56.6kB]
Get:8 http://archive.ubuntu.com intrepid/main rpm 4.4.2.3-1ubuntu1 [638kB]
Get:9 http://archive.ubuntu.com intrepid/main python-rpm 4.4.2.3-1ubuntu1 [429kB]
Get:10 http://archive.ubuntu.com intrepid/universe python-sqlitecachec 1.1.2-1 [37.9kB]
Get:11 http://archive.ubuntu.com intrepid/universe yum 3.2.12-1.2 [367kB]
Fetched 2919kB in 1s (2486kB/s)
Selecting previously deselected package libbeecrypt6.
(Reading database ... 101177 files and directories currently installed.)
Unpacking libbeecrypt6 (from .../libbeecrypt6_4.1.2-7_i386.deb) ...
Selecting previously deselected package librpm4.4.
Unpacking librpm4.4 (from .../librpm4.4_4.4.2.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package python-elementtree.
Unpacking python-elementtree (from .../python-elementtree_1.2.6-12_all.deb) ...
Selecting previously deselected package python-celementtree.
Unpacking python-celementtree (from .../python-celementtree_1.0.5-10_i386.deb) ...
Selecting previously deselected package python-pyme.
Unpacking python-pyme (from .../python-pyme_0.8.0-2_i386.deb) ...
Selecting previously deselected package python-sqlite.
Unpacking python-sqlite (from .../python-sqlite_1.0.1-7_i386.deb) ...
Selecting previously deselected package python-urlgrabber.
Unpa...

Read more...

Revision history for this message
Loïc Minier (lool) wrote :

Fixed in >= intrepid, so closing the dev task

Changed in yum (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in yum (Ubuntu Hardy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.