Depends: python (< 2.6) but 2.6.1-0ubuntu3 is to be installed

Bug #342151 reported by Savvas Radevic
2
Affects Status Importance Assigned to Milestone
urwid (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ apt-cache policy python-urwid; sudo apt-get install python-urwid
python-urwid:
  Installed: (none)
  Candidate: 0.9.8.3-1
  Version table:
     0.9.8.3-1 0
        500 http://archive.ubuntu.com jaunty/universe Packages

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
  python-urwid: Depends: python (< 2.6) but 2.6.1-0ubuntu3 is to be installed
E: Broken packages

Related branches

Revision history for this message
Savvas Radevic (medigeek) wrote :

touch python-build-stamp-2.5
cd . && python setup.py build --build-base="/tmp/buildd/urwid-0.9.8.3/./build"
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    import urwid
  File "/tmp/buildd/urwid-0.9.8.3/urwid/__init__.py", line 41, in <module>
    from listbox import *
  File "/tmp/buildd/urwid-0.9.8.3/urwid/listbox.py", line 82, in <module>
    class SimpleListWalker(MonitoredList, ListWalker):
  File "/usr/lib/python2.6/abc.py", line 79, in __new__
    cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
make: *** [python-build-stamp-2.6] Error 1

Revision history for this message
Savvas Radevic (medigeek) wrote :

Found a patch, I edited it since urwid/monitored_list.py doesn't exist anymore:
http://<email address hidden>/msg00297.html

Attached a debdiff patch.

Revision history for this message
Savvas Radevic (medigeek) wrote :

Build logs attached matching the patch above.

Tested with "reportbug -B debian" and works! :)

Revision history for this message
Savvas Radevic (medigeek) wrote :

Attaching a clean version of the patch, in case someone wants it for other distributions!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package urwid - 0.9.8.3-1ubuntu1

---------------
urwid (0.9.8.3-1ubuntu1) jaunty; urgency=low

  * python 2.6 transition (LP: #342151)
    + debian/control, debian/rules: Depends and include dpatch
    + Added 10-metaclass_conflict_fix.dpatch

 -- Savvas Radevic <email address hidden> Fri, 13 Mar 2009 09:16:49 +0100

Changed in urwid:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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