[Bug 1997973] Re: AttributeError in is_distro_package: 'NoneType' object has no attribute 'origins'
Launchpad Bug Tracker
1997973 at bugs.launchpad.net
Tue Dec 13 11:50:46 UTC 2022
This bug was fixed in the package apport - 2.24.0-0ubuntu1
---------------
apport (2.24.0-0ubuntu1) lunar; urgency=medium
* New upstream bug-fix release.
- Catch malformed problem reports (LP: #1996040)
- Catch ValueError: not enough values to unpack (LP: #1995100)
- Catch FileNotFoundError for missing desktop files (LP: #1997753)
- Catch binascii.Error: Incorrect padding (LP: #1997912)
- Catch AttributeError: NoneType object has no attribute origins
(LP: #1997973)
* Drop cherry-picked upstream patches
* oem-getlogs: Use colon instead of a dot for chown command
* Remove redundant section from apport-noui
* Clarify that apport-noui is empty
* Run black, isort, pydocstyle, pylint during package build
-- Benjamin Drung <bdrung at ubuntu.com> Thu, 08 Dec 2022 01:37:20 +0100
** Changed in: apport (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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:
Fix Released
Status in apport package in Ubuntu:
Fix Released
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
More information about the foundations-bugs
mailing list