[Bug 1947425] Update Released
Andreas Hasenack
1947425 at bugs.launchpad.net
Thu Dec 15 17:34:32 UTC 2022
The verification of the Stable Release Update for apport has completed
successfully and the package is now being released to -updates.
Subsequently, the Ubuntu Stable Release Updates Team is being
unsubscribed and will not receive messages about this bug report. In
the event that you encounter a regression using the package from
-updates please report a new bug using ubuntu-bug and tag the bug report
regression-update so we can easily find any regressions.
--
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/1947425
Title:
Use of deprecated 'imp' module
Status in Apport:
Fix Released
Status in apport package in Ubuntu:
Fix Released
Status in apport source package in Jammy:
Fix Released
Bug description:
Impact
------
The deprecation warning is just a warning, but it clutters the output
and can lead to misattributions in case something does not work as
expected.
Test Case
---------
1. apt install apport
2. Execute following command:
python3 -Wonce -c "import apport.report"
3. There should be no output.
Where problems could occur
--------------------------
Except for changes to the test cases, _check_interpreted is the only
consumer for the changed code. Breakage in this code paths can lead to
wrongly assume that the crashing Python code is an interpreted script
or not. This can lead to reports that have only ExecutablePath set
(and not InterpreterPath).
Original Description
--------------------
Code using apport/report.py will see the following warning:
$ python3 -Wonce -c "import apport.report"
/usr/lib/python3/dist-packages/apport/report.py:13
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
The 'imp' module is slated for removal in Python 3.12.
https://github.com/python/cpython/blob/main/Lib/imp.py#L31
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1947425/+subscriptions
More information about the foundations-bugs
mailing list