Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56120 - net-p2p/bittornado-0.3.4 fails to start w/ gui
Summary: net-p2p/bittornado-0.3.4 fails to start w/ gui
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-05 04:02 UTC by Perttu Luukko
Modified: 2004-07-06 03:39 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 Perttu Luukko 2004-07-05 04:02:23 UTC
After upgrading net-p2p/bittornado from 0.3.3 to 0.3.4, the GUI version (btdownloadgui.py) fails to start. The curses version (btdownloadcurses.py) works as fine as ever. There is a workaround at http://forums.degreez.net/viewtopic.php?t=1389
Basically what you need is either
a) Upgrade to wxWidget 2.5
or
b) Add "wxFULL_REPAINT_ON_RESIZE = 0" somewhere in btdownloadgui.py and ConfigReader.py
After doing b, my btdownloadgui.py works normally.

Reproducible: Always
Steps to Reproduce:
1. emerge =net-p2p/bittornado-0.3.4
2. btdownloadgui.py something.torrent


Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/btdownloadgui.py", line 125, in __init__
    style = wxDEFAULT_FRAME_STYLE|wxFULL_REPAINT_ON_RESIZE)
NameError: global name 'wxFULL_REPAINT_ON_RESIZE' is not defined

Traceback (most recent call last):
  File "/usr/bin/btdownloadgui.py", line 2321, in ?
    run(argv[1:])
  File "/usr/bin/btdownloadgui.py", line 2174, in run
    _run(params)
  File "/usr/bin/btdownloadgui.py", line 2177, in _run
    app = btWxApp(0, params)
  File "/usr/bin/btdownloadgui.py", line 2143, in __init__
    wxApp.__init__(self, x)
  File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in __init__
    _wxStart(self.OnInit)
  File "/usr/bin/btdownloadgui.py", line 2147, in OnInit
    d = DownloadInfoFrame(doneflag, self.configfile)
  File "/usr/bin/btdownloadgui.py", line 452, in __init__
    self.exception()
  File "/usr/bin/btdownloadgui.py", line 2084, in exception
    self.on_errorwindow(data.getvalue())
  File "/usr/bin/btdownloadgui.py", line 2090, in on_errorwindow
    if self._errorwindow is None:
AttributeError: DownloadInfoFrame instance has no attribute '_errorwindow'

Expected Results:  
Open a window and start downloading some files :)

emerge info:
------SNIP-------
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -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.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm artswrappersuid avi berkdb bonobo cdr crypt
cups dedicated directfb dvd encode fbcon flac foomaticdb freetype gdbm ggi gif
gimpprint gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394
imap imlib ispell java jpeg ldap libg++ libwww mad maildir mailwrapper matroska
mikmod mmx mng motif mozilla moznocompose moznoirc moznomail mpeg nas ncurses
nls oggvorbis opengl oss pam pdflib perl php png ppds python qt quicktime
readline samba scanner sdl silc slang speex spell sse ssl stroke svga tcltk tcpd
tetex theora tiff truetype unicode usb video_cards_nvidia videos vim-with-x wmf
x86 xine xml xml2 xmms xv zlib"
------SNIP-------

I am using wxpython-2.4.2.4 and wxGTK-2.4.2-r1 compiled with USE flags described
above.
Comment 1 Pete Plank 2004-07-06 01:01:04 UTC
I experienced the same problem. The solution offered in the thread linked below did resolve the issue for me but it probably should be added to the ebuild since it is a code change.

http://forums.gentoo.org/viewtopic.php?t=193766

Comment 2 Tobias Sager 2004-07-06 01:04:51 UTC
Could you supply a patch?
Comment 3 Guillaume Destuynder (RETIRED) gentoo-dev 2004-07-06 03:39:02 UTC
Should be fixed in portage until wxpython 2.5 ebuild is available.
Please emerge sync and re-emerge bittornado