apt-p2p service start fails due to ImportError for package old ("Failed to load application: No module named old")

Bug #1398213 reported by Karl-Philipp Richter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-p2p (Debian)
Fix Released
Unknown
apt-p2p (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After installing with `sudo apt-get install apt-p2p` and leaving the configuration untouched, starting the service with `sudo service apt-p2p start` fails with

    $ sudo service apt-p2p start
    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/python2.7/dist-packages/apt_p2p/apt_p2p.py", line 19, in <module>
        from MirrorManager import MirrorManager
      File "/usr/lib/python2.7/dist-packages/apt_p2p/MirrorManager.py", line 16, in <module>
        from AptPackages import AptPackages
      File "/usr/lib/python2.7/dist-packages/apt_p2p/AptPackages.py", line 40, in <module>
        from apt.progress.old import OpProgress
    exceptions.ImportError: No module named old

    Failed to load application: No module named old

    .

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: apt-p2p 0.1.7
ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
Uname: Linux 3.16.0-25-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Dec 2 00:34:12 2014
PackageArchitecture: all
SourcePackage: apt-p2p
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in the package apt-p2p - 0.1.8

---------------
apt-p2p (0.1.8) unstable; urgency=medium

  * QA upload.
  * Really import OpProgress from apt.progress.base (closes: #778674).

 -- Michael Gilbert <email address hidden> Sun, 22 Feb 2015 01:28:47 +0000

Changed in apt-p2p (Ubuntu):
status: New → Fix Released
Changed in apt-p2p (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.