On Ubuntu 11.04 with the latest updates applied, trying to import 'kiwi.utils' fails with the traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "kiwi/utils.py", line 78, in <module>
class _GobjectClassInittableObject(object):
File "kiwi/utils.py", line 75, in __init__
metabase.__init__(self, name, bases, namespace)
File "/usr/lib/pymodules/python2.7/gobject/__init__.py", line 60, in __init__
cls._type_register(cls.__dict__)
File "/usr/lib/pymodules/python2.7/gobject/__init__.py", line 114, in _type_register
type_register(cls, namespace.get('__gtype_name__'))
TypeError: Error when calling the metaclass bases
argument must be a GObject subclass
It can be reproduced with both the packaged version 1.9.22 and the one from the website 1.9.26. Compared to Ubuntu 10.10, where Python 2.6 is used by default, Python 2.7 is used by default on Ubuntu 11.04. The version 2.27.0+git20110131-0ubuntu6 of python-gobject is used.
It would be great to know if this problem can be fixed in Kiwi, or whether there's a problem in the GObject bindings. Unfortunately, this bug causes software to break in Ubuntu 11.04 that depends on Kiwi, like LottaNZB.
On Ubuntu 11.04 with the latest updates applied, trying to import 'kiwi.utils' fails with the traceback:
Traceback (most recent call last): ittableObject( object) : __init_ _(self, name, bases, namespace) pymodules/ python2. 7/gobject/ __init_ _.py", line 60, in __init__ _type_register( cls.__dict_ _) pymodules/ python2. 7/gobject/ __init_ _.py", line 114, in _type_register register( cls, namespace. get('__ gtype_name_ _'))
File "<stdin>", line 1, in <module>
File "kiwi/utils.py", line 78, in <module>
class _GobjectClassIn
File "kiwi/utils.py", line 75, in __init__
metabase.
File "/usr/lib/
cls.
File "/usr/lib/
type_
TypeError: Error when calling the metaclass bases
argument must be a GObject subclass
It can be reproduced with both the packaged version 1.9.22 and the one from the website 1.9.26. Compared to Ubuntu 10.10, where Python 2.6 is used by default, Python 2.7 is used by default on Ubuntu 11.04. The version 2.27.0+ git20110131- 0ubuntu6 of python-gobject is used.
It would be great to know if this problem can be fixed in Kiwi, or whether there's a problem in the GObject bindings. Unfortunately, this bug causes software to break in Ubuntu 11.04 that depends on Kiwi, like LottaNZB.