Reputation: 839
the following code should work
import gi
import gi.repository
this works in a python shell. And it also works if I save the file as a script then launch it in a terminal. but in aptana3 i get this:
import gi.repository
ImportError: No module named repository
i think this bug report may have a clue
Upvotes: 3
Views: 1395
Reputation: 8222
Goto
window > preferences > PyDev > Interpreter - (Python/Jython/IronPython).
Goto Forced Builtins
tab
Click on New
add gi
Apply and then check.
Upvotes: 5