code shogan
code shogan

Reputation: 839

pydev on aptana3 unable to import gi.repository

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

Answers (1)

Rahul Prasad
Rahul Prasad

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

Related Questions