[Bug 1947425] Re: Use of deprecated 'imp' module
Launchpad Bug Tracker
1947425 at bugs.launchpad.net
Mon Jun 27 14:31:06 UTC 2022
This bug was fixed in the package apport - 2.22.0-0ubuntu1
---------------
apport (2.22.0-0ubuntu1) kinetic; urgency=medium
* New upstream release:
- Replace `ProblemReport.get_date` by `ProblemReport.get_timestamp`, fixes
regression in 2.21.0 (LP: #1978487)
- apport-gtk: Exclude trailing dot from URL links (LP: #1978301)
- Fix `AttributeError`: 'NoneType' object has no attribute 'write', fixes
regression in 2.21.0 (LP: #1979211)
- apport_python_hook: Properly handle missing modules (LP: #1774843)
- apport_python_hook: Fix FileNotFoundError if the current directory was
deleted (LP: #1979637)
- apport_python_hook: Fix crash if os.getcwd() fails (LP: #1977954)
- Replace deprecated 'imp' module (LP: #1947425)
- whoopsie-upload-all: Fix 'EOFError' object has no attribute 'errno',
fixes regression in 2.21.0 (LP: #1979681)
* Fix KeyError: 'CasperMD5json'
-- Benjamin Drung <bdrung at ubuntu.com> Mon, 27 Jun 2022 12:03:00 +0200
** 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/1947425
Title:
Use of deprecated 'imp' module
Status in Apport:
Fix Released
Status in apport package in Ubuntu:
Fix Released
Bug 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