[Bug 1947425] Re: Use of deprecated 'imp' module
Benjamin Drung
1947425 at bugs.launchpad.net
Mon Jun 27 16:53:49 UTC 2022
** Description changed:
+ Test Case
+ ---------
+
+ 1. Execute following command:
+ python3 -Wonce -c "import apport.report"
+ 2. There should be no output.
+
+ 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
--
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:
New
Bug description:
Test Case
---------
1. Execute following command:
python3 -Wonce -c "import apport.report"
2. There should be no output.
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