[Bug 1947425] Re: Use of deprecated 'imp' module

Benjamin Drung 1947425 at bugs.launchpad.net
Fri Jul 22 16:49:23 UTC 2022


I uploaded a new SRU version which includes more test fixed to make the
autopkgtest suite succeed on all architectures. See #1982555 for
details.

-- 
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