Environment variables for gobject introspection don't take system libraries into account
@jeff
Submitted by Jeff F.T. Assigned to Thibault Saunier @thiblahute
Description
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.
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=686341