Package: apt-p2p
Version: 0.1.6+nmu1
Severity: grave
File: AptPackages.py
Tags: patch
Justification: renders package unusable

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Installation of the package.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Issue the command '/etc/init.d/apt-p2p start' at root prompt.

   * What was the outcome of this action?

The following error message was displayed :

Starting apt-p2pUnhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 642, 
in run
    runApp(config)
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, 
in runApp
    _SomeApplicationRunner(config).run()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 376, 
in run
    self.application = self.createOrGetApplication()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 441, 
in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 452, 
in getApplication
    application = service.loadApplication(filename, style, passphrase)
  File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 
405, in loadApplication
    application = sob.loadValueFromFile(filename, 'application', passphrase)
  File "/usr/lib/python2.7/dist-packages/twisted/persisted/sob.py", line 210, 
in loadValueFromFile
    exec fileObj in d, d
  File "/usr/sbin/apt-p2p", line 73, in <module>
    from apt_p2p.apt_p2p import AptP2P
  File "/usr/lib/pymodules/python2.7/apt_p2p/apt_p2p.py", line 19, in <module>
    from MirrorManager import MirrorManager
  File "/usr/lib/pymodules/python2.7/apt_p2p/MirrorManager.py", line 16, in 
<module>
    from AptPackages import AptPackages
  File "/usr/lib/pymodules/python2.7/apt_p2p/AptPackages.py", line 40, in 
<module>
    from apt.progress.old import OpProgress
exceptions.ImportError: No module named old


   * What outcome did you expect instead?

The usual 'Starting apt-p2p' message.


   * Problem fixed

The problem was fixed by editing the file 
'/usr/lib/pymodules/python2.7/apt_p2p/AptPackages.py' and replace the
code line :

from apt.progress.old import OpProgress

by the the code line :

from apt.progress.base import OpProgress

It save my day, but may be this fix has sides effects I cannot even imagine.  



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-p2p depends on:
ii  adduser              3.113+nmu3
ii  python               2.7.5-5
ii  python-apt           0.9.3.5
ii  python-debian        0.1.21+nmu2
ii  python-pysqlite2     2.6.3-3
ii  python-support       1.0.15
ii  python-twisted-web2  8.1.0-3

apt-p2p recommends no packages.

apt-p2p suggests no packages.

-- Configuration Files:
/etc/apt-p2p/apt-p2p.conf changed:
[DEFAULT]
PORT = 9970
UPLOAD_LIMIT = 0
MIN_DOWNLOAD_PEERS = 0
CACHE_DIR = /var/cache/apt-p2p
    
    
LOCAL_OK = yes
REMOTE_STATS = yes
UNLOAD_PACKAGES_CACHE = 5m
KEY_REFRESH = 2.5h
USERNAME = apt-p2p
DHT = apt_p2p_Khashmir
DHT-ONLY = no
[apt_p2p_Khashmir]
BOOTSTRAP = earpop.petiteanse.net:9970 
            vortex.petiteanse.net:9970
            starlight.petiteanse.net:9970
            chalet.petiteanse.net:9970
            ratrace.petiteanse.net:9970
            hermit.petiteanse.net:9970
            turmoil.petiteanse.net:9970
            plantation.petiteanse.net:9970
            steer.petiteanse.net:9970
BOOTSTRAP_NODE = yes
CHECKPOINT_INTERVAL = 5m
CONCURRENT_REQS = 8
STORE_REDUNDANCY = 6
RETRIEVE_VALUES = -10000
MAX_FAILURES = 3
MIN_PING_INTERVAL = 15m
BUCKET_STALENESS = 1h
KEY_EXPIRE = 3h
KRPC_TIMEOUT = 9s
KRPC_INITIAL_DELAY = 2s
SPEW = no


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to