#1535 Support Gobject-Instropection (PyGI) by default

open
Editor (491)
5
2012-10-11
2012-10-11
Anonymous
No

There are several reports requesting this feature:
https://sourceforge.net/tracker/index.php?func=detail&aid=3284889&group_id=85796&atid=577329
http://stackoverflow.com/questions/6606115/pydev-on-aptana3-unable-to-import-gi-repository
http://stackoverflow.com/questions/11098483/how-to-resolve-these-unresolved-imports-in-pydev-eclipse

Forced Builtins (http://pydev.org/manual_101_interpreter.html#PyDevInterpreterConfiguration-ForcedBuiltins) doesn't work for me adding gi, gi.repository or even adding external libraries in PYTHONPATH with /usr/lib/gireporsitory-1.0 or /usr/lib/python3/dist-packages/gi

This should be done by default almost for gi repository, because is very common have source depencies with GTK, Unity or others in Ubuntu when you write some code.

So please don't mark this as invalid or works for me and let's trait to solve in easy way for users. Users wan't see warning red lines or add messing lines like @UnresolvedImport in his code. They want a robust module autodetection.

If this can be done in terminal:

>>> import gi
>>> gi
<module 'gi' from '/usr/lib/python3/dist-packages/gi/__init__.py'>

PyDev should autodetect that gi module is installed and present.

Discussion