I'm using PyCharm 2.5 on Ubuntu 11.10, trying to develop an application using PyGObject 3.0 on Python 3.2.2. I've installed the Ubuntu package python3-gobject, and when I run my code, it works exactly as expected.
However, PyCharm can not seem to find any of the PyGObject modules. It says
Unresolved refrence: 'Gtk'
from gi.repository import Gtk
win = Gtk.Window()
In Gtk+ 3 Python bindings to binary modules are generated dynamically using
*.typelib databases. The dynamic importer for accessing all the modules is located in
gi.repository. PyCharm cannot detect these modules using its code insight, because they require special handling.
I've filed a feature request for this issue: PY-6932. Feel free to vote for it.