[Urwid] Installing 0.9.8.3 with Python 2.6 fails
Friedrich Weber
fred at samurai-x.org
Fri Nov 7 04:00:52 EST 2008
Joern Koerner <koerner <at> in.tu-clausthal.de> writes:
>
> Hi again!
>
> I tried to setup the current urwid within Python 2.6, which fails with the
> following error:
>
> $python setup.py install
> Traceback (most recent call last):
> File "setup.py", line 29, in <module>
> import urwid
> File "/root/urwid/urwid/__init__.py", line 49, in <module>
> from listbox import *
> File "/root/urwid/urwid/listbox.py", line 85, in <module>
> class SimpleListWalker(MonitoredList, ListWalker):
> File "/usr/lib/python2.6/abc.py", line 76, 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
>
Hi,
I had the same problem and fixed it by deriving MonitoredList from list, not
UserList. Additionally, I added some __hash__ methods.
All *seems* to work (did only test a few examples) and should also work with
python 2.5.
The patch: http://paste.pocoo.org/show/90455/
Cheers,
Friedrich
More information about the Urwid
mailing list