$ btdownloadgui.py wxPython is either not installed or has not been installed properly. Traceback (most recent call last): File "/usr/bin/btdownloadgui.py", line 23, in ? sys.exit(1) NameError: name 'sys' is not defined Reproducible: Always Steps to Reproduce: 1. 2. 3.
could you please post your emerge --info along with the versions of python and bittorrent you are using? Python herd, I think this one's your area.
Please attach also result of command: python -c 'from wxPython.wx import *'
$ emerge --info Portage 2.0.51_pre12 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.4.20040619-r0, 2.6.7-love5) ================================================================= System uname: 2.6.7-love5 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.5.1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-ftracer -march=athlon-xp -O3 -ffast-math -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-ftracer -march=athlon-xp -O3 -ffast-math -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/trunk /usr/local/kde" SYNC="rsync://mirror.hamakor.org.il/gentoo-portage" USE="x86 3dnow X alsa apache2 avi bidi cups divx4linux gif gtk gtk2 jpeg kde maildir mmx motif mozilla mpeg nls nptl ooo-kde opengl pic png qt samba spell sse ssl truetype xml xvid" dev-lang/python-2.3.4 net-p2p/bittornado-0.3.4
python -c 'from wxPython.wx import *' Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/python2.3/site-packages/wxPython/__init__.py", line 20, in ? import wxc ImportError: /usr/lib/libwx_gtk2-2.4.so: undefined symbol: _gtk_accel_group_detach
I'd try to `emerge gentoolkit` and run `revdep-rebuild` when you get unresolved symbols. I'm just trying to jump in here and help...Hope this helps.
I'd try to `emerge gentoolkit` and run `revdep-rebuild` when you get unresolved symbols. I'm just trying to jump in here and be useful...HTH
Genady, still having problems with this? I'd recommend upgrading to dev-python/wxpython-2.4.2.4 and x11-libs/wxGTK-2.4.2-r2 if you aren't already using them and the newest bittornado (0.3.7)
I'm having a similar problem to this bug. Here's my python -C 'from wxPython.wx import *' Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/python2.3/site-packages/wxPython/__init__.py", line 20, in ? import wxc ImportError: /usr/lib/python2.3/site-packages/wxPython/wxc.so: undefined symbol: _ZN9wxAppBase16OnFatalExceptionEv Here's my emerge info too: Portage 2.0.51 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, glibc-2.3.4.20041 006-r0, 2.6.9-cko1 i686) ================================================================= System uname: 2.6.9-cko1 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse -ff ast-math" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse - ffast-math -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm avi berkdb bitmap-fonts cdr cups encode esd f77 fam flac foomati cdb gdbm gif glx gnome gpm gstreamer gtk gtk2 imlib java jpeg junit libg++ libww w mad mikmod motif mozilla moznocompose moznoirc moznomail mpeg ncurses network nls no_wxgtk1 nptl oggvorbis opengl oss pam pdflib perl png ppds python quicktim e readline samba sdl slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts x86 xml2 xprint xv zlib"
What does ldd /usr/lib/python2.3/site-packages/wxPython/wxc.so show for libwx_gtk* If you upgraded a library that you have upgraded since, you may need to run revdep-rebuild or most likely re-emerge wxpython so it links properly to wxGTK Let us know what version of wxpython/wxGTK you have emerged if that doesn't help
I've got... libwx_gtk2-2.4.so => /usr/lib/libwx_gtk2-2.4.so (0xb795f000) GTK1 support isn't compiled in. I've already reemerged wxpython and wxGTK and revdeped.. I'm using wxGTK-2.4.2-r3 and wxpython-2.4.2.4
You might try re-emerging python if it was compiled with a different version of gcc than wxpython and wxGTK.
I did an emerge -e world a few days ago, so everything has been recompiled with gcc-3.4.2-r2. The wxWindows people thought it was due to multiple gcc versions also.
I see you have -fvisibility-inlines-hidden in your CXXFLAGS. We just got a bug report saying that causes wxGTK to fail: bug# 68500 Could you please try emerging wxGTK without that and let us know if that helps you? Thanks
Closing. Craig if you still have problems not related to bug# 68500 please feel free to re-open this.
Nope everything works here now :D. Thanks guys!