Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159406 - net-p2p/bittorrent-5.0.3 doesn't work (GTK version)
Summary: net-p2p/bittorrent-5.0.3 doesn't work (GTK version)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-29 11:46 UTC by Jouni Rinne
Modified: 2007-01-21 13:08 UTC (History)
0 users

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 Jouni Rinne 2006-12-29 11:46:30 UTC
When trying to run net-p2p/bittorrent-5.0.3, I get the following error:

madmax@bluelight ~ $ bittorrent
Exception in thread bittorrent:259 in ?: threading.Thread(target=init_core, args=(mainloop,)).start():
Traceback (most recent call last):
  File "/usr/bin/bittorrent", line 259, in ?
    threading.Thread(target=init_core, args=(mainloop,)).start()
  File "/usr/bin/bittorrent", line 211, in init_core
    init_torrents=False)
  File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 167, in __init__
    self._restore_state(init_torrents)
  File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 844, in _restore_state
    t = decode_line(line)
  File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 758, in decode_line
    t.working_path = t.working_path.decode('utf-8')
  File "/usr/lib/python2.4/site-packages/BitTorrent/Torrent.py", line 259, in _set_working_path
    self.config['working_path'] = value
  File "/usr/lib/python2.4/site-packages/BitTorrent/prefs.py", line 49, in __setitem__
    assert not isinstance(self._options[option], str) or \
AssertionError: 'working_path' is not str
non-daemon threads not shutting down in a timely fashion:
  <StackThread(disk_thread-1, started)>
  <StackThread(disk_thread-2, started)>
  <StackThread(disk_thread-3, started)>
You have no chance to survive make your time.
Killed

The GUI starts, and there's an error popup which says: 'BitTorrent core initialization failed!'. When I click 'ok', the program crashes. Previous version (4.4.0) worked fine.

Portage 2.1.2_rc4-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r4 i686)
=================================================================
System uname: 2.6.18-gentoo-r4 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.8
Last Sync: Fri, 29 Dec 2006 17:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.14-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="fi_FI@euro"
LINGUAS="fi en"
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.europe.gentoo.org/gentoo-portage"
USE="nls dvdread unicode jpeg session mp3 cdr x264 gdbm ogg xml iconv truetype-fonts hal cli tcpd mikmod imap fortran real xinerama python quicktime gtk2 nodrm jack dv X bitmap-fonts qt nptl truetype divx4linux ppds zlib cairo udev vorbis mmx mpeg xine xv oggvorbis lua acpi imagemagick isdnlog asf theora 3dnow gnome dri ladspa mmap lash firefox tiff xvmc cups pcre gpm mjpeg usb opengl type1-fonts ieee1394 gif a52 kde nsplugin matroska cracklib dlloader sdl ncurses pppd flac berkdb ruby png ffmpeg aac nptlonly gstreamer v4l qt3 svg lcms motif scanner tidy spl avi sndfile curl crypt libg++ sse win32codecs alsa dga x86 perl mad xorg readline reflection ssl dvd gnustep nvidia v4l2" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LINGUAS="fi en" USERLAND="GNU" VIDEO_CARDS="mga nv nvidia s3 s3virge v4l vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2007-01-16 15:54:46 UTC
Please try with 5.0.4, and be sure to have wxGTK-2.6.3.3 and wxpython-2.6.3.3.
Comment 2 Jouni Rinne 2007-01-16 19:43:51 UTC
No luck with 5.0.4 :(, I get almost exactly the same error as with 5.0.3, just some line numbers changed... wxpython-2.6.3.3 and wxGTK-2.6.3.3 are installed.

Exception in thread bittorrent:263 in ?: threading.Thread(target=init_core, args=(mainloop,)).start():
Traceback (most recent call last):
  File "/usr/bin/bittorrent", line 263, in ?
    threading.Thread(target=init_core, args=(mainloop,)).start()
  File "/usr/bin/bittorrent", line 215, in init_core
    init_torrents=False)
  File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 167, in __init__
    self._restore_state(init_torrents)
  File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 823, in _restore_state
    t = decode_line(line)
  File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 758, in decode_line
    t.working_path = t.working_path.decode('utf-8')
  File "/usr/lib/python2.4/site-packages/BitTorrent/Torrent.py", line 266, in _set_working_path
    self.config['working_path'] = value
  File "/usr/lib/python2.4/site-packages/BitTorrent/prefs.py", line 49, in __setitem__
    assert not isinstance(self._options[option], str) or \
AssertionError: 'working_path' is not str
non-daemon threads not shutting down in a timely fashion:
  <StackThread(disk_thread-3, started)>
  <StackThread(disk_thread-2, started)>
  <StackThread(disk_thread-1, started)>
You have no chance to survive make your time.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2007-01-17 11:37:17 UTC
(In reply to comment #2)
> No luck with 5.0.4 :(, I get almost exactly the same error as with 5.0.3, just
> some line numbers changed... wxpython-2.6.3.3 and wxGTK-2.6.3.3 are installed.
> 
> Exception in thread bittorrent:263 in ?: threading.Thread(target=init_core,
> args=(mainloop,)).start():
> Traceback (most recent call last):
>   File "/usr/bin/bittorrent", line 263, in ?
>     threading.Thread(target=init_core, args=(mainloop,)).start()
>   File "/usr/bin/bittorrent", line 215, in init_core
>     init_torrents=False)
>   File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 167,
> in __init__
>     self._restore_state(init_torrents)
>   File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 823,
> in _restore_state
>     t = decode_line(line)
>   File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 758,
> in decode_line
>     t.working_path = t.working_path.decode('utf-8')
>   File "/usr/lib/python2.4/site-packages/BitTorrent/Torrent.py", line 266, in
> _set_working_path
>     self.config['working_path'] = value
>   File "/usr/lib/python2.4/site-packages/BitTorrent/prefs.py", line 49, in
> __setitem__
>     assert not isinstance(self._options[option], str) or \
> AssertionError: 'working_path' is not str
> non-daemon threads not shutting down in a timely fashion:
>   <StackThread(disk_thread-3, started)>
>   <StackThread(disk_thread-2, started)>
>   <StackThread(disk_thread-1, started)>
> You have no chance to survive make your time.
> 

Have you tried removing ~/.bittorrent ?
Comment 4 Jouni Rinne 2007-01-18 19:53:30 UTC
Ouch... *now* I did remove it: at least it doesn't crash any more. However, there are still some minor glitches: bittorrent takes a VERY, VERY long time to start up, and the Help>About window complains that it doesn't find /usr/share/doc/bittorrent-5.0.4/credits.txt, well it *is* there, but zipped (I have never understood why Gentoo insists on zipping all documentation...). Also, there are duplicate entries of README.txt and redirdonate.html (the other in html/) in the mentioned doc directory.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2007-01-21 13:08:11 UTC
(In reply to comment #4)
> Ouch... *now* I did remove it: at least it doesn't crash any more. However,
> there are still some minor glitches: bittorrent takes a VERY, VERY long time to
> start up, and the Help>About window complains that it doesn't find
> /usr/share/doc/bittorrent-5.0.4/credits.txt, well it *is* there, but zipped (I
> have never understood why Gentoo insists on zipping all documentation...).
> Also, there are duplicate entries of README.txt and redirdonate.html (the other
> in html/) in the mentioned doc directory.
> 

Fixed the html and the help -> about thing. Added info about upgrading. About the slowness of starting up...it takes here about 10 seconds to start...

Bug fixed.