Traceback (most recent call last):
File "./Gmail", line 25, in <module>
from gi.repository import GLib as glib
File "/usr/lib/python3.4/site-packages/gi/__init__.py", line 39, in <module>
raise ImportError(_static_binding_error)
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". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
Pourtant quand je lance la commande de la ligne 25 dans une console python je n'ai pas d'erreur :
[sebastien@Lupus ~]$ python
Python 3.4.2 (default, Oct 8 2014, 13:44:52)
[GCC 4.9.1 20140903 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import GLib as glib
>>>
Une idée?
Dernière modification par lesebas le mar. 07 avr. 2015, 11:53, modifié 1 fois.
le problème venait de la cohabitation de python-gobject2 et python-gobject. Les 2 paquets étaient requis par system-config-printer mais ne semblent pas compatibles. Le paquet system-config-printer a été recompilé sans python-gobject2 :