Re: using GResources



On Tue, 2012-10-23 at 08:33 +0200, Alexander Larsson wrote:
> On mån, 2012-10-22 at 10:38 -0400, D.H. Bahr wrote:
> > 
> > TypeError: metaclass conflict: the metaclass of a derived class must be
> > a (non-strict) subclass of the metaclasses of all its bases
> > **
> > ERROR:/build/buildd/pygobject-3.2.2/gi/_gobject/pygobject.c:929:pygobject_new_full: assertion failed: (tp != NULL)
> 
> This seems more like a pygtk issue. What type of object is it trying to
> create here. I.e. where in your code is it printing this.

I've narrowed it down to a conflict with 'gudev' and 'GObject'. At some
point in my code I import both like this:

...
from gi.repository import GObject
import gudev
...

at that point I get

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning:
g_boxed_type_register_static: assertion `g_type_from_name (name) == 0'
failed
  import gobject._gobject

I'm guessing that maybe gudev relies on the old 'gobject' rather than in
the new 'gi.repository.GObject'.

If I don't use that module, css and images load flawlessly from the
GResource.

I'm using Ubuntu 12.04, may it be an Ubuntu-specific bug??

Best regards


10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]