Bug#645391: python-gobject: gobject-introspection do not find locally installed .gir and .typelib

Picca Frédéric-Emmanuel picca at synchrotron-soleil.fr
Sat Oct 15 09:43:03 UTC 2011


Package: python-gobject
Version: 2.28.6-5
Severity: normal

Dear Maintainer,

I am working on my liabray hkl and try to add gobject-introspection.
so during developpement I install the library into
/usr/local (the default prefix of autotools)

so my .gir and .typelib files are :

/usr/local/lib/girepository-1.0/Hkl-4.0.typelib
/usr/local/share/gir-1.0/Hkl-4.0.gir


and when I try to import the library from python

I get

In [1]: from gi.repository import Hkl
ERROR:root:Could not find any typelib for Hkl
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/home/picca/Projets/hkl/<ipython-input-1-bf2b38d3a0a5> in <module>()
----> 1 from gi.repository import Hkl

ImportError: cannot import name Hkl


so, my question is

Can you configure the gobject-introspection, to look by default also for locally installed repository


thanks for your attention


Frederic

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-2-486
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gobject depends on:
ii  gir1.2-glib-2.0        0.10.8-2+b1
ii  libc6                  2.13-21    
ii  libffi5                3.0.10-3   
ii  libgirepository-1.0-1  0.10.8-2+b1
ii  libglib2.0-0           2.28.6-4   
ii  python                 2.7.2-9    
ii  python2.7              2.7.2-6    

Versions of packages python-gobject recommends:
ii  python-gobject-cairo  2.28.6-5

Versions of packages python-gobject suggests:
pn  python-gobject-dbg  <none>

-- no debconf information






More information about the pkg-gnome-maintainers mailing list