2016-03-27 23 views
2

"輸入のGObject" の出現をすべて変更してください、私はこのようにGtkをimprotしよう: from gi.repository import Gtkに "gi.repository輸入のGObjectから"

と私は次のエラーを取得:

ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject"

そして試してみると同じエラーが出るfrom gi.repository import GObject

この問題を解決してください!

答えて

2

python-gobjectpython-gobject-2を再インストールしたところ、すべてが機能しています。