pygobject / pgi

[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
GNU Lesser General Public License v2.1
74 stars 16 forks source link

BOXED type not supported #33

Open felixbuenemann opened 8 years ago

felixbuenemann commented 8 years ago

I'm trying to use pgi with libvips, but it fails to load the overrides with the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pgi/importer.py", line 122, in load_module
    proxy = overrides.load(namespace, instance)
  File "/usr/local/lib/python2.7/dist-packages/pgi/overrides/__init__.py", line 73, in load
    _compat.reraise(ImportError, err, sys.exc_info()[2])
  File "/usr/local/lib/python2.7/dist-packages/pgi/overrides/__init__.py", line 60, in load
    override_module = __import__(name, fromlist=[""])
  File "/usr/local/lib/python2.7/dist-packages/pgi/overrides/Vips.py", line 102, in <module>
    unpack_types = [[Vips.Blob, lambda x: bytes(x.get())],
  File "/usr/local/lib/python2.7/dist-packages/pgi/module.py", line 92, in __getattr__
    "%r attribute type not supported" % info.type)
ImportError: 'BOXED' attribute type not supported

The info.type.value for BOXED is 4, which is currently not defined in _attr_list.