Friedrich Weber wrote: > 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
Looks like it works with 2.3 as well. I have committed your changes here: https://excess.org/hg/urwid/rev/dd731ccf570a Ian _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
