Apt-Proxy 1.9.36ubuntu1 Python error

Bug #131251 reported by John
4
Affects Status Importance Assigned to Milestone
apt-proxy (Debian)
Fix Released
Unknown
apt-proxy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: apt-proxy

On Ubuntu gutsy (development branch) on 2.6.22-9-generic x86_64 GNU/Linux

apt-proxy won't start after an update :
  # /etc/init.d/apt-proxy start
     * Starting apt-proxy
      Failed to load application: 'module' object has no attribute 'CPU'
                                                                                                                   [fail]

Related branches

Revision history for this message
John (cronos6) wrote :

According to this page : http://<email address hidden>/msg376877.html

--- packages.py 2007-08-04 19:12:36.000000000 +0300
+++ /usr/lib/python2.4/site-packages/apt_proxy/packages.py 2007-08-04
19:12:53.000000000 +0300
@@ -103,7 +103,7 @@
     """
     DEFAULT_APT_CONFIG = {
         #'APT' : '',
- 'APT::Architecture' : apt_pkg.CPU,
+ #'APT::Architecture' : apt_pkg.CPU,
         #'APT::Default-Release' : 'unstable',

         'Dir':'.', # /

  => Works fine here too now

Revision history for this message
John (cronos6) wrote :

Sorry, wrong path, should be /usr/lib/python2.5/site-packages/apt_proxy/packages.py

Revision history for this message
Chris Halse Rogers (raof) wrote :

I confirm the problem, and the fix.

I'll attach a debdiff for a fixed package soon.

Changed in apt-proxy:
assignee: nobody → raof
status: New → In Progress
Revision history for this message
Chris Halse Rogers (raof) wrote :
Changed in apt-proxy:
assignee: raof → nobody
status: In Progress → Confirmed
Revision history for this message
John (cronos6) wrote :

Thanks for the work!

Revision history for this message
Barry deFreese (bddebian) wrote :

Uploaded. Thanks for the patch.

Changed in apt-proxy:
status: Confirmed → Fix Committed
Revision history for this message
Chris Halse Rogers (raof) wrote :

apt-proxy (1.9.36ubuntu2) gutsy; urgency=low

  * apt_proxy/packages.py
    - Comment out apt_pkg.CPU - apt_pkg no longer provides this
    - Fixes LP: #131251

 -- Christopher James Halse Rogers (RAOF) <email address hidden> Sat, 11 Aug 2007 17:51:47 +1000

Changed in apt-proxy:
status: Fix Committed → Fix Released
Changed in apt-proxy:
status: Unknown → Confirmed
Changed in apt-proxy:
status: Confirmed → Fix Released
Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

Here is the oldUbuntu vs newUbuntu debdiff

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

Sorry, wrong bug

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.