Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5064 - bittorrent 4.20.4-1 broken

Attached to Project: Arch Linux
Opened by Robert Redford (lemming) - Tuesday, 18 July 2006, 15:06 GMT
Last edited by Dale Blount (dale) - Wednesday, 02 August 2006, 13:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After installing package bittorrent-4.20.4-1:
# pacman -S bittorrent

And attempting to run it:
$ cd my_torrent_directory
$ launchmany-curses .

BitTorrent doesn't run, it gives this error:
Traceback (most recent call last):
File "/usr/bin/launchmany-curses", line 322, in ?
curses_wrapper(LaunchManyWrapper, config)
File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/bin/launchmany-curses", line 280, in LaunchManyWrapper
LaunchMany(config, CursesDisplayer(scrwin), 'launchmany-curses')
File "/usr/lib/python2.4/site-packages/BitTorrent/launchmanycore.py", line 150, in __init__
output.exception(data.getvalue())
NameError: global name 'output' is not defined
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Friday, 05 January 2007, 21:14 GMT
Reason for closing:  Works for me
Additional comments about closing:  Version 5.0.3
Comment by Tobias Powalowski (tpowa) - Tuesday, 18 July 2006, 15:16 GMT
come on this doesn't make your machine go boom, so no critical is here needed
Comment by Robert Redford (lemming) - Monday, 24 July 2006, 19:26 GMT
I think this bug is not due to Arch packaging. I have also installed bittorrent from sources downloaded from bittorrent homepage. The error persists.

Sorry by setting it initiallly to "critical". I misunderstood, severity field is not applied to package.
Comment by Tobias Powalowski (tpowa) - Wednesday, 02 August 2006, 13:35 GMT
this packages is not in extra neither in current repo, so here is the wrong bugtracker
Comment by Dale Blount (dale) - Wednesday, 02 August 2006, 13:42 GMT
actually bittorrent is in extra, assigning to Jürgen
Comment by Jürgen Hötzel (juergen) - Monday, 07 August 2006, 18:23 GMT
Updated to bittorrent 4.20.7-1. Please test.

Jürgen
Comment by Dale Blount (dale) - Monday, 07 August 2006, 18:29 GMT
I'm not the original reporter, but launchmany-curses does this on my machine now:

Traceback (most recent call last):
File "/usr/bin/launchmany-curses", line 27, in ?
from BitTorrent.launchmanycore import LaunchMany
File "/usr/lib/python2.4/site-packages/BitTorrent/launchmanycore.py", line 26, in ?
from BitTorrent.MultiTorrent import MultiTorrent, Feedback
File "/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 25, in ?
from BitTorrent.Torrent import Feedback, Torrent
File "/usr/lib/python2.4/site-packages/BitTorrent/Torrent.py", line 38, in ?
from BitTorrent.ConnectionManager import ConnectionManager
File "/usr/lib/python2.4/site-packages/BitTorrent/ConnectionManager.py", line 20, in ?
from BitTorrent.RawServer_twisted import Handler
File "/usr/lib/python2.4/site-packages/BitTorrent/RawServer_twisted.py", line 93, in ?
from BitTorrent.ConnectionRateLimitReactor import connectionRateLimitReactor
File "/usr/lib/python2.4/site-packages/BitTorrent/ConnectionRateLimitReactor.py", line 42, in ?
class IRobotConnector(object):
File "/usr/lib/python2.4/site-packages/zope/interface/advice.py", line 132, in advise
return callback(newClass)
File "/usr/lib/python2.4/site-packages/zope/interface/declarations.py", line 488, in _implements_advice
classImplements(cls, *interfaces)
File "/usr/lib/python2.4/site-packages/zope/interface/declarations.py", line 465, in classImplements
spec.declared += tuple(_normalizeargs(interfaces))
File "/usr/lib/python2.4/site-packages/zope/interface/declarations.py", line 1372, in _normalizeargs
_normalizeargs(v, output)
File "/usr/lib/python2.4/site-packages/zope/interface/declarations.py", line 1371, in _normalizeargs
for v in sequence:
TypeError: Error when calling the metaclass bases
iteration over non-sequence
Comment by Dale Blount (dale) - Monday, 07 August 2006, 18:33 GMT
Actually, all bittorrent binaries are now broken on my system.
Comment by Jürgen Hötzel (juergen) - Monday, 07 August 2006, 20:52 GMT
get_host_ip() in BitTorrent/HostIP.py hangs forever (SYN_SENT) because ip.bittorrent.com is down. This simple (and silly) mechanism for getting the host_ip seems to be a new "feature" of this version. Instead of calling getsockname (like in previous versions) this version try's to discover the local IP adress by
sending "GET /myip HTTP/1.0\r\n\r\n" to ip.bittorret.com:80. If i add
127.0.0.1 localhost.localdomain localhost ip.bittorrent.com
to "/etc/hosts" i can start downloads but own ip-discovery fails obviously.

@Dale: couldn't reproduce your problem. Any Hints?

Comment by Eric Gillingham (sysrq) - Tuesday, 08 August 2006, 16:44 GMT
Working fine here with the hosts hack to disable ip.bittorrent.com.
Comment by Eric Gillingham (sysrq) - Tuesday, 08 August 2006, 17:05 GMT
I spoke to soon, when trying to use rate limiting as soon as I try to upload I get flooded with errors
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 161, in restart_loop |
| 08/08/06 10:05:40 - self.run() |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 227, in run |
| 08/08/06 10:05:40 - self.restart_loop(t) |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 161, in restart_loop |
| 08/08/06 10:05:40 - self.run() |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 227, in run |
| 08/08/06 10:05:40 - self.restart_loop(t) |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 161, in restart_loop |
| 08/08/06 10:05:40 - self.run() |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 227, in run

Repeating over and over.
Comment by Jürgen Hötzel (juergen) - Tuesday, 08 August 2006, 22:48 GMT
Update to bittorrent 4.20.7-2: Set a sockettimeout (2 seconds) to avoid blocking in connect.

Comment by Eric Gillingham (sysrq) - Thursday, 10 August 2006, 21:08 GMT
I still get the same
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 161, in restart_loop |
| 08/08/06 10:05:40 - self.run() |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 227, in run |
| 08/08/06 10:05:40 - self.restart_loop(t) |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 161, in restart_loop |
| 08/08/06 10:05:40 - self.run() |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 227, in run |
| 08/08/06 10:05:40 - self.restart_loop(t) |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 161, in restart_loop |
| 08/08/06 10:05:40 - self.run() |
| 08/08/06 10:05:40 - File "/usr/lib/python2.4/site-packages/BitTorrent/NewRateLimiter.py", line 227, in run
If I try to set a max upload cap with --max_upload_rate
Comment by Jürgen Hötzel (juergen) - Sunday, 20 August 2006, 16:22 GMT
upgpkg: bittorrent 4.20.9-1

They set Connection-Timeout to 20sec. So be patient.

Jürgen
Comment by Alec Thomas (alecthomas) - Monday, 21 August 2006, 16:08 GMT
Same error as Eric Gillingham reports is still present in 4.20.9. Triggered by --max_upload_rate
Comment by Andrey Gusev (metal) - Wednesday, 04 October 2006, 16:50 GMT
bittorent still broken I have errors:
Traceback (most recent call last):
File "/usr/bin/bittorrent", line 170, in ?
from BitTorrent.GUI_wx.DownloadManager import MainLoop
File "/usr/lib/python2.4/site-packages/BitTorrent/GUI_wx/__init__.py", line 28, in ?
import wx
ImportError: No module named wx
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.4/site-packages/BitTorrent/atexit_threads.py", line 57, in duh
func(*targs, **kargs)
File "/usr/lib/python2.4/site-packages/BitTorrent/IPC.py", line 171, in stop
self.rawserver.stop_listening(self.controlsocket)
File "/usr/lib/python2.4/site-packages/BitTorrent/RawServer_twisted.py", line 834, in stop_listening
self.factory.pop_connection_data(self._get_data_key(serversocket))
File "/usr/lib/python2.4/site-packages/BitTorrent/RawServer_twisted.py", line 500, in pop_connection_data
return self.connection_data.pop_from_row(key)
File "/usr/lib/python2.4/site-packages/BitTorrent/DictWithLists.py", line 60, in pop
l = self[key]
KeyError: '/home/metal/.bittorrent/data/controlsocket'
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.4/site-packages/BitTorrent/atexit_threads.py", line 57, in duh
func(*targs, **kargs)
File "/usr/lib/python2.4/site-packages/BitTorrent/IPC.py", line 171, in stop
self.rawserver.stop_listening(self.controlsocket)
File "/usr/lib/python2.4/site-packages/BitTorrent/RawServer_twisted.py", line 834, in stop_listening
self.factory.pop_connection_data(self._get_data_key(serversocket))
File "/usr/lib/python2.4/site-packages/BitTorrent/RawServer_twisted.py", line 500, in pop_connection_data
return self.connection_data.pop_from_row(key)
File "/usr/lib/python2.4/site-packages/BitTorrent/DictWithLists.py", line 60, in pop
l = self[key]
KeyError: '/home/metal/.bittorrent/data/controlsocket'
Comment by Jürgen Hötzel (juergen) - Wednesday, 04 October 2006, 18:20 GMT
You need to install wxpython if you use the graphical frontend "bittorrent".

Maybe we should patch bittorrent to print a nice "missing ..." message. This kind of bug report about missing optional dependency appear often...
Comment by Andrey Gusev (metal) - Wednesday, 04 October 2006, 19:14 GMT
Thanks, |'ve installed wxpytython and gui has started. It used to gtk, so I didn't read errors in detailed.
Comment by Jürgen Hötzel (juergen) - Tuesday, 17 October 2006, 22:18 GMT
Bittorrent 4.26 is out, which requires twisted-web 0.5. But twisted-web 2.x is already in extra. If anybody can port HTTPDownloader.py i would appreciate it.

Comment by Jürgen Hötzel (juergen) - Tuesday, 07 November 2006, 22:55 GMT
Bittorrent 5.0.0-1 is out. Please check it.

Loading...