sh-3.00$ python Python 2.4.2 (#1, Nov 28 2005, 20:21:10) [GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gnome.ui Segmentation fault sh-3.00$ I have tried re-emerging every gnome python package I can think of, with no change. I originally came across this problem when I tried to run hal-device-manager, and traced it to the import gnome.ui command.
Reopen with emerge --info output and include ebuild name and version that installs gnome.ui.
emerge --info is below. Unfortunately, I don't know what package provides gnome.ui. That is the reason I filed the bug. How can I find what package provides it? bash-3.00# emerge --info Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gent oo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.14 dev-lang/python: 2.2.3-r5, 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.19-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/ 3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdow n /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/sh are/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /us r/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/te x/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /va r/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env .d" CXXFLAGS="-march=athlon-4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/ distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/gentopia" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib afs alsa apm arts audiofile avi berkdb bitmap-fonts bonobo bzip 2 cdr crypt cups curl eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtk html guile hal idn imagemagick imlib ipv6 jack java jpeg kde lcms libg++ libwww lirc mad mhash mikmod mng mono motif mozilla mp3 mpeg mysql ncurses nls ogg oggv orbis openal opengl oss pam pcre pdflib perl plotutils png python qt quicktime r eadline samba sdl slang speex spell sqlite ssl svga tcltk tcpd tetex tiff truety pe truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xv xvid zlib us erland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
(In reply to comment #2) > How can I find what package provides it? equery b /full/path/to/gnome.ui
The package that provides gnome.ui appears to be gnome-python. * dev-python/gnome-python Available versions: 1.4.2 1.4.4 1.4.4-r1 2.0.0 2.0.0-r1 ~2.0.2 2.6.1 2.10.0 2.12.0 2.12.1 ~2.12.3 Installed: 1.4.2 1.4.4-r1 2.12.1 Homepage: http://www.pygtk.org/ Description: GNOME 2 bindings for Python
Reopening this bug, since I have provided the required information.
not happening for me on both stable and unstable. can you get a backtrace from that crash? gdb python (gdb) r -c 'import gnome.ui' (gdb) bt thanks
Okay, here it is: sh-3.00$ gdb python GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r -c 'import gnome.ui' Starting program: /usr/bin/python -c 'import gnome.ui' (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 27943)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 27943)] 0xb6c672c5 in initoaf () from /usr/lib/python2.4/site-packages/oafmodule.so (gdb) bt #0 0xb6c672c5 in initoaf () from /usr/lib/python2.4/site-packages/oafmodule.so #1 0xb6c68139 in ?? () from /usr/lib/python2.4/site-packages/oafmodule.so #2 0x0804cf78 in ?? () #3 0xb7f37454 in ?? () from /usr/lib/libpython2.4.so.1.0 #4 0xbf8a5d40 in ?? () #5 0xb6c67286 in initoaf () from /usr/lib/python2.4/site-packages/oafmodule.so #6 0xb7ef66ba in _PyImport_LoadDynamicModule () from /usr/lib/libpython2.4.so.1.0 #7 0xbf8a5d40 in ?? () #8 0xbf8a5d40 in ?? () #9 0xbf8a58b0 in ?? () #10 0x080af4c0 in ?? () #11 0xb7f37454 in ?? () from /usr/lib/libpython2.4.so.1.0 #12 0xb6c67280 in ?? () from /usr/lib/python2.4/site-packages/oafmodule.so #13 0x00000000 in ?? () (gdb)
could you do a equery b /usr/lib/python2.4/site-packages/oafmodule.so ? looks like you might have bonobo-python installed. ( where that .so comes from i think) to test, try unmerging bonobo-python and importing gnome.ui again. Thanks.
Yes, after unmerging bonobo-python, import gnome.ui works fine. And I was even able to re-emerge bonobo-python, and import gnome.ui still works. Sorry for the stupid bug report, and thank you for your help.