[Bug 580490] New: python error message 'ImportError: could not import gio'
http://bugzilla.novell.com/show_bug.cgi?id=580490 http://bugzilla.novell.com/show_bug.cgi?id=580490#c0 Summary: python error message 'ImportError: could not import gio' Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: doiggl@velocitynet.com.au QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4 Error message in python: # python Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import gtk /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: could not import gio ImportError: could not import gio
Rpm python modules installed: rpm -qa | grep -i python | sort dbus-1-python-0.83.0-28.2.x86_64 libpython2_6-1_0-2.6.2-6.3.x86_64 libxml2-python-2.7.3-2.2.x86_64 python-2.6.2-6.3.x86_64 python-base-2.6.2-6.3.x86_64 python-cairo-1.8.8-1.5.x86_64 python-gobject2-2.21.1-1.5.x86_64 python-gtk-2.17.0-1.4.x86_64 python-kde4-4.3.1-3.7.x86_64 python-kdebase4-4.3.1-7.1.x86_64 python-numpy-1.3.0-2.2.x86_64 python-qt4-4.6.1-1.1.1.x86_64 python-satsolver-0.14.10-1.1.1.x86_64 python-simplejson-2.0.9-2.1.x86_64 python-sip-4.9.1-1.1.1.x86_64 python-urlgrabber-3.1.0-182.1.noarch python-xml-2.6.2-6.3.x86_64 rpm-python-4.7.1-6.7.1.x86_64 So what modules am I missing ? Reproducible: Always Steps to Reproduce: # python Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import gtk Actual Results: /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: could not import gio
Expected Results: import gtk command works. With another application using python calling the command 'import _gtk' will show the error as well. example: # smart --gui /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: could not import gio ImportError: could not import gio Traceback (most recent call last): File "/usr/bin/smart", line 195, in <module> main(sys.argv[1:]) File "/usr/bin/smart", line 162, in main forcelocks=opts.ignore_locks, loglevel=opts.log_level) File "/usr/lib64/python2.6/site-packages/smart/__init__.py", line 134, in init iface.object = createInterface(ifacename, ctrl, command, argv) File "/usr/lib64/python2.6/site-packages/smart/interface.py", line 169, in createInterface return interface.create(ctrl, command, argv) File "/usr/lib64/python2.6/site-packages/smart/interfaces/gtk/__init__.py", line 43, in create from smart.interfaces.gtk.interactive import GtkInteractiveInterface File "/usr/lib64/python2.6/site-packages/smart/interfaces/gtk/interactive.py", line 29, in <module> from smart.interfaces.gtk.packageview import GtkPackageView File "/usr/lib64/python2.6/site-packages/smart/interfaces/gtk/packageview.py", line 27, in <module> class PixbufCellRenderer(gtk.GenericCellRenderer): AttributeError: 'module' object has no attribute 'GenericCellRenderer' -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=580490
http://bugzilla.novell.com/show_bug.cgi?id=580490#c1
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=580490
http://bugzilla.novell.com/show_bug.cgi?id=580490#c2
--- Comment #2 from Glenn Doig
import gtk
# rpm -qa | grep -i python | sort dbus-1-python-0.83.0-29.12.x86_64 libpython2_6-1_0-2.6.2-11.3.x86_64 libxml2-python-2.7.3-5.3.x86_64 python-2.6.2-11.3.x86_64 python-base-2.6.2-11.3.x86_64 python-cairo-1.8.8-1.5.x86_64 python-curses-2.6.2-11.3.x86_64 python-gobject2-2.21.1-1.5.x86_64 python-gobject2-devel-2.21.1-1.5.x86_64 python-gtk-2.17.0-1.4.x86_64 python-kde4-4.4.0-1.3.x86_64 python-kdebase4-4.4.0-1.1.x86_64 python-m2crypto-0.19.1-3.8.x86_64 python-numpy-1.3.0-3.10.x86_64 python-qt4-4.7-1.2.x86_64 python-satsolver-0.14.14-1.6.x86_64 python-simplejson-2.0.9-3.6.x86_64 python-sip-4.10-1.2.x86_64 python-urlgrabber-3.1.0-183.2.noarch python-xml-2.6.2-11.3.x86_64 rpm-python-4.7.1-10.2.x86_64 With another application using python that worked as well. example: smart --gui This worked ok. Please close this. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=580490
http://bugzilla.novell.com/show_bug.cgi?id=580490#c3
Vincent Untz
participants (1)
-
bugzilla_noreply@novell.com