Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131946 - dev-python/wxpython leaving old tree and messing wxversion
Summary: dev-python/wxpython leaving old tree and messing wxversion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 12:02 UTC by Tupone Alfredo
Modified: 2007-09-15 04:36 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 Tupone Alfredo gentoo-dev 2006-05-01 12:02:52 UTC
when I build wxpython with -unicode it create a directory called /usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi

If I emerge again wxpyhton, this time with unicode /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode

The old dir is not removed completely, so when I have a wxversion.select('2.6') the import wx can work or not, depend on which directory wxversion select
Comment 1 Decibels 2006-08-03 16:21:20 UTC
AMD64 build
This has been a problem on mine also, but I only have one version installed.
>>> wxversion.getInstalled()
['2.6-gtk2-ansi', '2.6-gtk2-ansi']

Thought I might be my program, but EVERY wxpython program I use produces this error:
/usr/lib64/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py:13155: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")

Can even run the check and it works: >>> wxversion.checkInstalled('2.6')
True
>>> wxversion._find_default() '/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi'

So for final check tried in my program:
import wxversion
print wxversion.checkInstalled('2.6')
print wxversion.checkInstalled('2.6-gtk2-ansi')
print wxversion.getInstalled()
wxversion.select('2.6-gtk2-ansi') *same response with ('2.6')

**response is: **

True
True
['2.6-gtk2-ansi', '2.6-gtk2-ansi']
/usr/lib64/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py:13155: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")

This isn't really a big deal with me, but don't like to see the warning, when it isn't True. Not loading wxversion isn't an option cause it still does it regardless. So does every other wxpython program.

EMERGE INFO:
Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa arts audiofile avi bitmap-fonts cdr cli crypt cups dlloader dri dvd dvdr dvdread eds emboss encode fbcon ffmpeg flash foomaticdb fortran gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib isdnlog java javascript jpeg kde libwww live lm_sensors lzo lzw lzw-tiff mad mime mozilla mp3 mpeg mysql ncurses nls nptl nsplugin nvidia oggvorbis opengl pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection scanner sdl session spell spl ssl svg tcpd theora tiff truetype-fonts type1-fonts usb userlocales vcd vorbis wmf xanim xmms xorg xpm xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mart Raudsepp gentoo-dev 2006-08-03 16:57:56 UTC
(In reply to comment #1)
> AMD64 build
> This has been a problem on mine also, but I only have one version installed.

What is the exact version (3 or 4 version components) of your x11-libs/wxGTK and dev-python/wxpython?
Comment 3 Decibels 2006-08-03 17:57:44 UTC
LOL. I was just fixing that and started the emerge. Checked mail while waiting and got your response.

Seems that wxGTK had a higher version that went stable while wxPython didn't.
So had: wxGTK-2.6.2-r1 and wxpython-2.6.1.0
which I would think would work if use wxversion.select("2.6").

So emerged: wxGTK-2.6.3.2 and wxpython-2.6.3.2
and that seems to have fixed the problem. 

New problem crops up now with a popup window saying: Failed to display HTML document in ISO-8859-1 encoding.
Which is more annoying than the other warning in the terminal.

Otherwise the version error seems to be gone. Wish there was a patch for
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py that would
surpress the error if you wanted.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2007-07-30 03:35:23 UTC
the reported bug is fixed in the next wxpython bump.

comment #2 is a completely different issue.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2007-09-15 04:36:41 UTC
fixed in wxpython-2.6.4.0