After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686341 - Environment variables for gobject introspection don't take system libraries into account
Environment variables for gobject introspection don't take system libraries i...
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: Build and packaging
Git
Other Linux
: High normal
: 0.91
Assigned To: Thibault Saunier
Pitivi maintainers
Depends on: 686342
Blocks:
 
 
Reported: 2012-10-17 23:46 UTC by Jean-François Fortin Tam
Modified: 2013-10-14 12:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2012-10-17 23:46:26 UTC
If you use "" as MODULES_CORE in pitivi-git-environment.sh (on distros that are recent enough that you don't havet to build glib, gobject-introspection and pygobject), you will not be able to run pitivi:

PTV env:~/pitivi-git/pitivi (master)$ pitivi
Traceback (most recent call last):
  • File "/home/jeff/pitivi-git/pitivi/bin/pitivi", line 145 in <module>
    _init_gobject_gtk_gst_ges()
  • File "/home/jeff/pitivi-git/pitivi/bin/pitivi", line 101 in _init_gobject_gtk_gst_ges
    gi.require_version('Gtk', '3.0')
AttributeError: 'module' object has no attribute 'require_version'


Indeed, if you check with ipython from within that environment, you'll see that the "gi" module does not have require_version nor "repository".

The environment variables should be set so that they can fallback to libraries that are already available system-wide.
Comment 1 Thibault Saunier 2013-10-14 12:13:05 UTC
commit 124c903c7a11e370ea54102a71070516ca7b2027
Author: Thibault Saunier <thibault.saunier@collabora.com>
Date:   Mon Oct 7 09:13:41 2013 -0300

    bin: Make sure the PyGobject path is always first in PYTHONPATH

    Otherwize we get issue when importing it has it picks the wrong
    __init__.py file for overrides