Proposed fix: https://github.com/canonical/apport/pull/31

** Also affects: apport
   Importance: Undecided
       Status: New

** Changed in: apport
    Milestone: None => 2.24.0

** Changed in: apport (Ubuntu)
   Importance: Undecided => Medium

** Changed in: apport
   Importance: Undecided => Medium

** Changed in: apport
       Status: New => In Progress

** Summary changed:

- 
/usr/share/apport/whoopsie-upload-all:AttributeError:/usr/share/apport/whoopsie-upload-all@249:main:collect_info:process_report:add_package_info:add_package:_customized_package_suffix:is_distro_package
+ AttributeError in is_distro_package: 'NoneType' object has no attribute 
'origins'

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1997973

Title:
  AttributeError in is_distro_package: 'NoneType' object has no
  attribute 'origins'

Status in Apport:
  In Progress
Status in apport package in Ubuntu:
  New

Bug description:
  Traceback (most recent call last):
    File "/usr/share/apport/whoopsie-upload-all", line 249, in <module>
      main()
    File "/usr/share/apport/whoopsie-upload-all", line 231, in main
      stamps = collect_info()
    File "/usr/share/apport/whoopsie-upload-all", line 162, in collect_info
      res = process_report(r)
    File "/usr/share/apport/whoopsie-upload-all", line 90, in process_report
      r.add_package_info()
    File "/usr/lib/python3/dist-packages/apport/report.py", line 371, in 
add_package_info
      version = self.add_package(package)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 339, in 
add_package
      self._customized_package_suffix(package),
    File "/usr/lib/python3/dist-packages/apport/report.py", line 310, in 
_customized_package_suffix
      if not packaging.is_distro_package(package):
    File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", 
line 241, in is_distro_package
      if {o.origin for o in pkg.candidate.origins} == {
  AttributeError: 'NoneType' object has no attribute 'origins'

  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
apport.  This problem was most recently seen with package version 
2.23.1-0ubuntu3, the problem page at 
https://errors.ubuntu.com/problem/3841c459c22228d1ef7cfaeceb767034ee7ca13e 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1997973/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to