Package: apt-p2p
Version: 0.1.1
Severity: grave

Hello,
I just tried apt-p2p and I have an exception in the log file. The upload
speed settings seems to have a problem:

Here the traceback:
2008-05-04 23:30:38+0200 [-] Unhandled Error
        Traceback (most recent call last):
          File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 323,
in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File
"/var/lib/python-support/python2.5/apt_p2p/AptPackages.py", line 401, in
_findHash
            d.callback(HashObject())
          File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 242,
in callback
            self._startRunCallbacks(result)
          File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 307,
in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 323,
in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/var/lib/python-support/python2.5/apt_p2p/apt_p2p.py",
line 166, in findHash_done
            self.startDownload([], req, hash, url, d)
          File "/var/lib/python-support/python2.5/apt_p2p/apt_p2p.py",
line 289, in startDownload
            getDefer = self.peers.get(hash, url)
          File
"/var/lib/python-support/python2.5/apt_p2p/PeerManager.py", line 488, in get
            return peer.get(path, method, modtime)
          File
"/var/lib/python-support/python2.5/apt_p2p/HTTPDownloader.py", line 334,
in get
            return self.submitRequest(ClientRequest(method, path,
headers, None))
          File
"/var/lib/python-support/python2.5/apt_p2p/HTTPDownloader.py", line 208,
in submitRequest
            self.rerank()
          File
"/var/lib/python-support/python2.5/apt_p2p/HTTPDownloader.py", line 424,
in rerank
            speed = self.downloadSpeed()
          File
"/var/lib/python-support/python2.5/apt_p2p/HTTPDownloader.py", line 383,
in downloadSpeed
            total_download += download[2]
        exceptions.TypeError: unsupported operand type(s) for +=: 'int'
and 'NoneType'

Maybe download[2] don't have the right type.

Hope this can help you.
Regards,
Luc.


--- System information. ---
Architecture: i386
Kernel: Linux 2.6.24-1-686

Debian Release: lenny/sid
500 unstable ftp.fr.debian.org

--- Package information. ---
Depends (Version) | Installed
===================================-+-============
python | 2.5.2-1
python-support (>= 0.7.1) | 0.7.7
debconf (>= 0.5) | 1.5.21
OR debconf-2.0 |
python-twisted-web2 (>= 8.0) | 8.0.1-1
adduser | 3.107
python-debian (>= 0.1.4) | 0.1.10
python-apt (>= 0.6.20) | 0.7.5
python-pysqlite2 (>= 2.1) | 2.4.1-1




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to