Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211479 - media-video/tovid - tovidgui fails, failed to import wxversion
Summary: media-video/tovid - tovidgui fails, failed to import wxversion
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 05:48 UTC by Mark Purtill
Modified: 2008-03-08 18:53 UTC (History)
2 users (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 Mark Purtill 2008-02-26 05:48:30 UTC
tovidgui fails with an error about "import wxversion"

Reproducible: Always

Steps to Reproduce:
1. Run tovidgui
Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/tovidgui", line 26, in ?
    import wxversion
ImportError: No module named wxversion
There was an error importing the 'wx' libraries. The above
output should help you find what went wrong. Re-installing
wxPython 2.6 (or upgrading from wxPython 2.4 to 2.6) may
help. Consult the tovid homepage (tovid.org) for further
assistance.
Sorry, 'tovidgui' will not work.


Expected Results:  
tovidgui should run

I have the following versions installed:

tovid-0.30-r2
wxpython-2.6.4.0-r1
eselect-wxwidgets-0.7-r1
wxsvg-1.0_beta7
wxGTK-2.6.4.0-r3
wxGTK-2.8.7.1-r1

eselect wxwidgets list gives:
Available wxWidgets profiles:
  [1]   gtk2-ansi-release-2.6
  [2]   gtk2-unicode-release-2.6 *
  [3]   gtk2-unicode-release-2.8

I've tried setting all three profiles; the error is the same for all three.

% emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r2 i686)
=================================================================
System uname: 2.6.24-gentoo-r2 i686 AMD Athlon(tm) XP 1900+
Timestamp of tree: Sun, 24 Feb 2008 16:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3, 2.17, 2.17.50.0.9, 2.17.50.0.10, 2.17.50.0.11, 2.17.50.0.12, 2.17.50.0.13, 2.17.50.0.14, 2.17.50.0.15, 2.17.50.0.16, 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-ggdb -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.utf8"
LC_ALL=""
LINGUAS="en ja"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-gis /usr/portage/local/layman/xemacs /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi alsa arts berkdb bitmap-fonts bluetooth bzip2 cairo canna cdr cjk cli cracklib crypt cups dbus debug doc dri dts dvd dvdr dvdread emboss encode esd evo fam firefox fortran freetype freewnn gdbm gif gnome gpm gstreamer gtk hal iconv imagemagick ipv6 isdnlog java joystick jpeg kde kdexdeltas kerberos ldap lm_sensors mad maildir mbox midi mikmod mmx mmxext mng mozsvg mp3 mpeg mplayer mudflap mule ncurses nls nodrm nptl nptlonly ogg opengl openmp oss pam pcre pdf perl pic png pppd python qt qt3 qt3support qt4 quicktime readline reflection ruby scanner sdl session spell spl sse ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs wmf x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" USERLAND="GNU" VIDEO_CARDS="mga vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Alexis Ballier gentoo-dev 2008-03-08 13:47:57 UTC
(In reply to comment #0)
> 1. Run tovidgui
> Actual Results:  
> Traceback (most recent call last):
>   File "/usr/bin/tovidgui", line 26, in ?
>     import wxversion
> ImportError: No module named wxversion
> There was an error importing the 'wx' libraries. The above
> output should help you find what went wrong. Re-installing
> wxPython 2.6 (or upgrading from wxPython 2.4 to 2.6) may
> help. Consult the tovid homepage (tovid.org) for further
> assistance.
> Sorry, 'tovidgui' will not work.


well here I have /usr/lib64/python2.5/site-packages/wxversion.py (and tovidgui starts fine)

and wxpython is supposed to create it:
   alternatives_auto_makesym \
        "${site_pkgs}/wxversion.py" "${site_pkgs}/wxversion.py-[0-9].[0-9]"


can you check if you have wxversion.py somewhere ?

Reassigning as this seems a wxpython issue.
Comment 2 Mark Purtill 2008-03-08 18:29:25 UTC
I checked, and there was a /usr/lib/python2.4/site-packages/wxversion.py-2.8 but no wxversion.py.  I re-emerged wxversion-2.8, and now there is a /usr/lib/python2.4/site-packages/wxversion.py, and tovid works (or, at least, gets past this problem).

I wonder if the problem is that I had wxversion-2.6 installed before 2.8, and then unemerged 2.6 after 2.8?  (So 2.6 had installed wxversion.py, so 2.8 didn't, and then when I unemerged 2.6, wxversion.py went away.)  I'm not sure if there's anything that could be done about that if it's the problem.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2008-03-08 18:53:43 UTC
it shouldn't, but it's possible you emerged 2.6 before the code that prevents that from happening was added.