Hi, I get
ImportError: No module named _gobject error when running python applications under Lenny. I'm wondering why and how I can fix it: $ python Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py", line 38, in <module> import gobject as _gobject File "/var/lib/python-support/python2.5/gtk-2.0/gobject/__init__.py", line 30, in <module> from gobject.constants import * File "/var/lib/python-support/python2.5/gtk-2.0/gobject/ constants.py", line 22, in <module> from _gobject import type_from_name ImportError: No module named _gobject >>> $ python2.5 Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py", line 38, in <module> import gobject as _gobject File "/var/lib/python-support/python2.5/gtk-2.0/gobject/__init__.py", line 30, in <module> from gobject.constants import * File "/var/lib/python-support/python2.5/gtk-2.0/gobject/ constants.py", line 22, in <module> from _gobject import type_from_name ImportError: No module named _gobject >>> Trying to find the answer myself, based on http://linux.hostweb.com/TopicMessages/alt.os.linux/2046484/1/Default.aspx I think it might be because, (somehow) I have two python packages installed in my system: python & python2.5. Neither seems to be replaceable. Here is a list of all python related package in my box: $ dpkg -l | grep python ii python 2.5.2-3 An interactive high-level object-oriented la ii python-cairo 1.4.12-1.2 Python bindings for the Cairo vector graphic ii python-central 0.6.8 register and build utility for Python packag ii python-dbus 0.82.4-2 simple interprocess messaging system (Python ii python-glade2 2.12.1-6 GTK+ bindings: Glade support ii python-gmenu 2.22.2-4 an implementation of the freedesktop menu sp ii python-gnome2 2.22.0-1 Python bindings for the GNOME desktop enviro ii python-gobject 2.14.2-1 Python bindings for the GObject library ii python-gtk2 2.12.1-6 Python bindings for the GTK+ widget set ii python-gtksour 2.2.0-1+b1 Python bindings for the GtkSourceView widget ii python-libxml2 2.6.32.dfsg-5 Python bindings for the GNOME XML library ii python-minimal 2.5.2-3 A minimal subset of the Python language (def ii python-notify 0.1.1-2+b1 Python bindings for libnotify ii python-numeric 24.2-9 Numerical (matrix-oriented) Mathematics for ii python-openssl 0.7-2 Python wrapper around the OpenSSL library ii python-pyorbit 2.14.3-2 A Python language binding for the ORBit2 COR ii python-support 0.8.4 automated rebuilding support for Python modu ii python-twisted 8.1.0-4 Event-based framework for internet applicati ii python-twisted 8.1.0-4 Event-based framework for internet applicati ii python-twisted 8.1.0-1 An HTTP protocol implementation together wit ii python-xdg 0.15-1.1 A python library to access freedesktop.org s ii python-zopeint 3.3.1-7 The implementation of interface definitions ii python2.5 2.5.2-15 An interactive high-level object-oriented la ii python2.5-mini 2.5.2-15 A minimal subset of the Python language (ver Please help. Thanks. -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org