Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154446 - wxpython 2.6.1 with no dev-libs/wxbase
Summary: wxpython 2.6.1 with no dev-libs/wxbase
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-08 02:27 UTC by Emmanuel Favre_Nicolin
Modified: 2006-12-29 08:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Favre_Nicolin 2006-11-08 02:27:15 UTC
after compiling wxGTK and wxpython 2.6.1 with option given hereafter, wx python does not load in ipython (see error message) 

emerge -pv wxGTK wxpython

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/wxGTK-2.6.1  USE="gtk2 opengl sdl unicode -debug -doc -gnome -joystick -odbc -wxgtk1" 0 kB
[ebuild   R   ] dev-python/wxpython-2.6.1.0  USE="gtk gtk2 opengl unicode" 0 kB

in ipython shell :

In [1]: import wx
---------------------------------------------------------------------------
exceptions.ImportError                               Traceback (most recent call last)

/home/manu/<ipython console>

/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py
     40
     41 # Load the package namespace with the core classes and such
---> 42 from wx._core import *
     43 del wx
     44

/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py
      2 # Don't modify this file, modify the SWIG interface instead.
      3
----> 4 import _core_
      5
      6 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):

ImportError: /usr/lib/libwx_baseu_net-2.6.so.0: undefined symbol: _ZTV11wxFileProto

with that options for wxGTK it told me "dev-libs/wxbase has been removed from portage and can be installed with wxGTK by specifying the USE flags -gtk2 and -wxgtk1

Is that true, will gtk2 applications depending on wxGTK will still work??

emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 04 Nov 2006 01:47:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://194.117.143.71/mirrors/gentoo ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ http://194.117.143.71"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LINGUAS="en fr pt_BR"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="x86 X aac acpi aim alsa apache2 apm audiofile bash-completion berkdb bitmap-fonts blas bzip2 cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread eds elibc_glibc emacs emboss encode esd ethereal exif ffmpeg fftw flac foomaticdb fortran ftp gcj gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee1394 imagemagick imap imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jabber jpeg jpeg2k kde kdexdelta kernel_linux lapack libg++ libwww linguas_en linguas_fr linguas_pt_BR lirc mad maildir matroska mbox memlimit mikmod mmx mng motif mp3 mpeg msn ncurses nls nptl nptlonly nsplugin ogg openexr opengl oss pam pcre perl plotutils png ppds pppd python qt qt3 qt4 quicktime readline recode reflection samba scanner sdl session sndfile sox speex spell spl sse sse2 ssl svg tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd video_cards_fglrx video_cards_radeon video_cards_vesa vorbis wifi win32codecs wmf xine xml xorg xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Emmanuel Favre_Nicolin 2006-11-08 02:32:58 UTC
I guess wxpython build should have detected that dev-libs/wxbase is not there? so that wxpython won't work anyway?
Comment 2 Emmanuel Favre_Nicolin 2006-11-08 15:36:39 UTC
After trying wxGTK wxpython 2.6.3 (that doesn't work see bug 154505), I switched back to 
wxpython 2.6.1 and wxGTK 2.6.2-r1
and I can import wx.gizmo in (i)python with just a version mismatch warning:

In [1]: import wx.gizmos
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py:13155: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")

Things seems a little bit confused here. I think  I tested the combination wxpython 2.6.1 and wxGTK 2.6.2-r1 earlier and it wasn't working. It was maybe due to kuroo that compiled first wxpython and then wxGTK (I found this very strange at the time)

Anyway, so maybe the problem is only with wxGTK 2.6.1

I don't know if this can be confirmed?
Comment 3 Emmanuel Favre_Nicolin 2006-11-09 02:40:49 UTC
I meant, I'm so confused that I don't even know anymore what's the bug! Anyway if it can't be reproduced, it's not a valid bug!
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2006-12-29 08:52:51 UTC
I got similar errors like this:

ImportError: /usr/lib/libwx_baseu_net-2.6.so.0: undefined symbol:
_ZTV11wxFileProto

with the combination of wxGTK-2.6.3.3 and wxpython-2.6.3.2.
But I can't reproduce it anymore.