importar erros com Python e Gtk + 3

Eu estou trabalhando em um programa que está escrito emGtk + 3 ePython. Uma questão relacionada que eu perguntei sobre o meu programa éAqui.

Agora, que eu avancei um pouco mais, tenho as seguintes importações:

import aplpy
import montage
import subprocess
from gi.repository import Gtk, GdkPixbuf

e quando eu corro eu recebo este erro:

$ ./makeRGB-frame.py 
Traceback (most recent call last):
  File "./makeRGB-frame.py", line 34, in <module>
    from gi.repository import Gtk, GdkPixbuf
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 27, in <module>
    from ._gi import _API, Repository
ImportError: could not import gobject (error was: 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".',))

Se eu alterar a ordem das importações:

from gi.repository import Gtk, GdkPixbuf
import aplpy
import montage
import subprocess

Eu também recebo um erro:

$ ./makeRGB-frame.py 
/usr/lib64/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size
  from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
  from gtk import _gtk
Segmentation fault (core dumped)

Os módulos importados são:APLpy emontagem de python.

Por favor me ajude a solucionar esses erros. Qualquer ajuda é apreciada!

Alemão.

questionAnswers(1)

yourAnswerToTheQuestion