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 _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
