When running launchmany-console, a Python exception is raised: File "/usr/lib/python2.4/site-packages/BTL/platform.py", line 88, in encode_for_filesystem assert isinstance(path, unicode), "Path should be unicode not %s" % type(path) exceptions.AssertionError: Path should be unicode not <type 'str'> Reproducible: Always Steps to Reproduce: From a directory containing a .torrent file: $ launchmany-console `pwd` Actual Results: An exception is raised and stack trace is dumped (see attached file). The program keeps running, but torrent is not loaded; subsequent messages show that no torrent is being worked: 2007-10-07T16:24:31.483051 - launchmany-console - 10233 - INFO - no torrents Expected Results: the program should work, having no uncaught exceptions. $ emerge --info Portage 2.1.3.9 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 Celeron (Covington) Timestamp of tree: Sun, 07 Oct 2007 00:50:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 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.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="aalib acl acpi adns apache2 apm bash-completion bcmath berkdb bitmap-fonts bzip2 cdparanoia cdr cli cracklib crypt cscope cups dbm dri dvd dvdr emacs encode ethereal foomaticdb fortran ftp gdbm gmp gnutls gpm iconv ipv6 isdnlog java libg++ libwww maildir mbox mcal mhash midi mime mmx mpm-prefork mudflap ncurses nls nptl nptlonly openmp pam pcntl pcre perl php posix ppds pppd python readline recode reflection samba sasl scanner session sharedmem slang sockets socks5 spl ssl symlink sysvipc tcltk tcpd threads truetype-fonts type1-fonts unicode usb wifi x86 xinetd xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I'm using dev-lang/python-2.4.4-r5
Created attachment 132844 [details] Output (stderr and stdout) of launchmany-console
Created attachment 133416 [details, diff] This patch seems to fix the bug This patch adds a check on the data type of the parameter that triggers the wrong assertion. If a string is passed, then it's converted to an unicode before the assertion. I don't know if the format I'm sending this patch is correct. It's a "diff -U 3" between my patched file and the original one.
net-p2p/bittorrent-5.0.9 seems to have fixed this problem.
I can reproduce this bug with 5.0.7. Version 5.0.9 fixes this. I think it should be marked as stable, since current "stable" version does not work.
net-p2p/bittorrent-5.0.9 stable everywhere -> FIXED.