I looked at fixing this, which is actually not that difficult. The
OpProgress just needs to be imported from a different location.

However, I noticed some other differences with the way the new version
of python-apt works, that I think is causing apt-p2p to fail to parse
all Packages files. This is a bad situation, and I don't really have
time to work on it.

I'm afraid this might be the end of apt-p2p, unless someone else wants
to take it over.

Cameron


On Thu, Sep 15, 2011 at 6:26 AM, Andrew O. Shadura <bugzi...@tut.by> wrote:
> Package: apt-p2p
> Version: 0.1.6
> Severity: important
>
> Starting apt-p2p/usr/lib/pymodules/python2.6/apt_p2p_Khashmir/DHT.py:8: 
> DeprecationWarning: the sha module is deprecated; use the hashlib module 
> instead
>  import os, sha, random
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 
> 626, in run
>    runApp(config)
>  File "/usr/lib/python2.6/dist-packages/twisted/scripts/twistd.py", line 23, 
> in runApp
>    _SomeApplicationRunner(config).run()
>  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 
> 374, in run
>    self.application = self.createOrGetApplication()
>  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 
> 439, in createOrGetApplication
>    application = getApplication(self.config, passphrase)
> --- <exception caught here> ---
>  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 
> 450, in getApplication
>    application = service.loadApplication(filename, style, passphrase)
>  File "/usr/lib/python2.6/dist-packages/twisted/application/service.py", line 
> 390, in loadApplication
>    application = sob.loadValueFromFile(filename, 'application', passphrase)
>  File "/usr/lib/python2.6/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.6/apt_p2p/apt_p2p.py", line 19, in <module>
>    from MirrorManager import MirrorManager
>  File "/usr/lib/pymodules/python2.6/apt_p2p/MirrorManager.py", line 16, in 
> <module>
>    from AptPackages import AptPackages
>  File "/usr/lib/pymodules/python2.6/apt_p2p/AptPackages.py", line 40, in 
> <module>
>    from apt import OpProgress
> exceptions.ImportError: cannot import name OpProgress
>
> Failed to load application: cannot import name OpProgress
>
> ..
>
> -- System Information:
> Debian Release: wheezy/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
> 'experimental')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.38-1-686 (SMP w/2 CPU cores)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: 
> LC_ALL set to en_GB.UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages apt-p2p depends on:
> ii  adduser                       3.112+nmu1 add and remove users and groups
> ii  python                        2.6.6-14   interactive high-level 
> object-orie
> ii  python-apt                    0.8.0      Python interface to libapt-pkg
> ii  python-debian                 0.1.21     Python modules to work with 
> Debian
> ii  python-pysqlite2              2.6.0-1    Python interface to SQLite 3
> ii  python-support                1.0.13     automated rebuilding support for 
> P
> ii  python-twisted-web2           8.1.0-3    An HTTP/1.1 Server Framework
>
> apt-p2p recommends no packages.
>
> apt-p2p suggests no packages.
>
> -- no debconf information
>
>
>



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

Reply via email to