I recently built, and then rebuilt (trying to fix the problem) wxGTK-2.6.0 and wxPython-2.6.0.0. The problem itself is I am unable to use wxPython. When I import the wx module I receive the following error: ImportError: /usr/lib/python2.3/site-packages/wx-2.6-gtk2-ansi/wx/_core_.so: undefined symbol: _ZTV12wxXPMHandler wxGTK-2.6.0 appears to have a USE flag of xpm, however I have it built with that flag disabled. Reproducible: Always Steps to Reproduce: 1. Launch pyhon 2. With python now running, attempt to import the wx module POWER ~ # emerge -pv wxGTK wxpython These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] x11-libs/wxGTK-2.6.0 -debug -dmalloc -doc +gnome +gtk2 -joystick +jpeg -odbc +opengl +png +sdl +tiff -unicode -wxgtk1 -xpm +zlib 0 kB [ebuild R ] dev-python/wxpython-2.6.0.0 -gtk +gtk2 +jpeg +opengl +png +tiff -unicode 0 kB Total size of downloads: 0 kB POWER greg # emerge info Portage 2.0.51.21 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2 .6.11-gentoo-r7 i686) ================================================================= System uname: 2.6.11-gentoo-r7 i686 Intel(R) Pentium(R) M processor 2.00GHz Gentoo Base System version 1.6.11 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.3 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.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/c onfig /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozi lla/defaults/pref /usr/share/config /var /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/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="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cddb cdr crypt cups curl dvd dvdr dvdread eds emboss encode esd fam flac foomaticdb gd gdbm gif gnome gphoto2 gpm gtk2 imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal libg++ libwww mad mikmod mozilla mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sandbox scanner sdl spell sql ssl subversion svga tcpd tetex tiff truetype truetype-fonts type1-fonts usb vorbis win32codecs xml2 xmms xv zlib userland_GNU kernel_linux libc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Are you saying you tried it with both -xpm and xpm? Or just -xpm?
I tried it with just -xpm. I have tested my wxGTK install by compiling a small wxGTK program and it seemed to work successfully.
Ok, thanks Greg. I guess that is one combination nobody tested. I'm recompiling with -xpm and I'll probably add a 2.6.0-r1 version to portage that enables xpm by default.
Hey no problem. I'm just happy anytime I can help. As we speak i'm compiling a version with xpm enabled to see if I'll have any better luck.
Closing, thanks Greg. I just removed the xpm USE flag entirely until I do more testing without it. The 2.4* versions all had it enabled, so better be safe and have it enabled now. Not going with an -r1 version though, since not everybody will need to re-emerge it.