iwlwifi_error_dump crashed with AttributeError in __main__: 'module' object has no attribute 'add_package'

Bug #1496268 reported by Lasse Kärkkäinen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

Got apport message about this after a reboot. Before reboot, after resuming from STR, Ubuntu couldn't find our office WiFi but would see a number of other networks here. After reboot, the network is working fine.

ProblemType: Crash
DistroRelease: Ubuntu 15.10
Package: apport 2.18.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-17.23-generic 3.16.3
Uname: Linux 3.16.0-17-generic x86_64
ApportVersion: 2.18.1-0ubuntu1
Architecture: amd64
CrashReports:
 640:0:119:271712:2015-09-08 09:56:19.515564441 +0300:2015-09-08 09:56:20.515564441 +0300:/var/crash/_sbin_wpa_supplicant.0.crash
 640:0:119:14340:2015-09-15 09:53:36.876802444 +0300:2015-09-15 09:53:37.876802444 +0300:/var/crash/_usr_share_apport_iwlwifi_error_dump.0.crash
 644:0:119:0:2015-09-08 09:56:22.660667938 +0300:2015-09-08 09:56:22.660667938 +0300:/var/crash/_sbin_wpa_supplicant.0.upload
 600:111:119:0:2015-09-08 09:56:24.597664396 +0300:2015-09-07 17:50:00.140497272 +0300:/var/crash/_sbin_wpa_supplicant.0.uploaded
Date: Tue Sep 15 09:53:37 2015
ExecutablePath: /usr/share/apport/iwlwifi_error_dump
InstallationDate: Installed on 2014-06-13 (460 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
InterpreterPath: /usr/bin/python3.4
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/share/apport/iwlwifi_error_dump /devices/pci0000:00/0000:00:1c.2/0000:04:00.0/ieee80211/phy0
ProcEnviron:

PythonArgs: ['/usr/share/apport/iwlwifi_error_dump', '/devices/pci0000:00/0000:00:1c.2/0000:04:00.0/ieee80211/phy0']
SourcePackage: apport
Title: iwlwifi_error_dump crashed with AttributeError in __main__: 'module' object has no attribute 'add_package'
Traceback:
 Traceback (most recent call last):
   File "/usr/share/apport/iwlwifi_error_dump", line 27, in <module>
     apport.add_package(apport.packaging.get_kernel_package())
 AttributeError: 'module' object has no attribute 'add_package'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Lasse Kärkkäinen (ljkarkk2) wrote :
tags: removed: need-duplicate-check
Changed in apport (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

The following line:

apport.add_package(apport.packaging.get_kernel_package())

should probably be:

pr.add_package(...)

Changed in apport (Ubuntu):
status: New → Triaged
information type: Private → Public
Changed in apport (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.19.1-0ubuntu2

---------------
apport (2.19.1-0ubuntu2) wily; urgency=medium

  * apt/dpkg: Don't mark packages downloaded from Launchpad for installation
    by apt. Thanks Brian Murray. (Cherry-picked from trunk.)

apport (2.19.1-0ubuntu1) wily; urgency=medium

  [ Martin Pitt ]
  * New upstream release:
    - Consistently intercept "report file already exists" errors in all writers
      of report files (package_hook, kernel_crashdump, and similar) to avoid
      unhandled exceptions on those. (LP: #1500450)
    - apt/dpkg: Fall back to direct Launchpad ddeb download if we can't find it
      in the apt cache. Thanks Brian Murray! (LP: #1500557)
    - doc/data-format.tex: Clarify that key names are being treated as case
      sensitive (unlike RFC822).

  [ Brian Murray ]
  * data/iwlwifi_error_dump: fix add_package call. (LP: #1496268)

  [ Sebastien Bacher ]
  * data/package-hooks/sources_ubiquity.py: Don't try decode() a str
    (LP: #1501773).

 -- Martin Pitt <email address hidden> Thu, 08 Oct 2015 08:04:12 +0200

Changed in apport (Ubuntu):
status: In Progress → 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.