Seite 1 von 1

gtk installation

Verfasst: Mittwoch 10. Juni 2009, 12:58
von INFACT
Sehr geehrtes Pythonforum!
Ich kann gtk nicht richtig installieren.
Ich habe es zweimal herunter geladen und die installation hat geklappt.
mit import pygtk klappt es, doch leider nicht mit den anderen:

Code: Alles auswählen

>>> import gobject
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import gobject
  File "H:\Programme\Python25\lib\site-packages\gobject\__init__.py", line 26, in <module>
    from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File "H:\Programme\Python25\lib\site-packages\glib\__init__.py", line 22, in <module>
    from glib._glib import *
ImportError: No module named _glib
>>> import gtk
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import gtk
  File "H:\Programme\Python25\lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in <module>
    import gobject as _gobject
  File "H:\Programme\Python25\lib\site-packages\gobject\__init__.py", line 26, in <module>
    from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File "H:\Programme\Python25\lib\site-packages\glib\__init__.py", line 22, in <module>
    from glib._glib import *
ImportError: No module named _glib
Bei google kommt kein ergebnis und ich habe keine ahnung wie ich das hinbekommen soll.
Ich nutze windows 7 und habe python 2.5

Kann mir jemand helfen?
MfG Robin

Verfasst: Mittwoch 10. Juni 2009, 13:58
von Leonidas
Wie hast du es denn installiert?

Verfasst: Mittwoch 10. Juni 2009, 14:24
von INFACT
http://ftp.gnome.org/pub/GNOME/binaries ... ygtk/2.12/
Hier das habe ich heruntergeladen und installiert.
Vill. kann jemand seinen lib\site-packages\glib ordner irgentwo hochladen und ich versuche es dann mal. Daran scheint es ja zu liegen, wenn ich das richtig sehe...

Verfasst: Mittwoch 10. Juni 2009, 14:37
von Leonidas
Hast du PyCairo und PyGObject auch installiert?

Verfasst: Mittwoch 10. Juni 2009, 19:46
von INFACT
Ja aber danach, was aber doch eigentlich keinen unterschied machen sollte oder`? :?: