missing package imp imported via future.standard_library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-future (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I use a software package that imports `standard_library` ending up in an error about the missing imp package. Package imp was deprecated and removed in python 3.12, so I guess the future package should be made aware of it?
https:/
Other dependent projects removed their python2 compatibility.
See also:
https:/
This pull request should already handle it, maybe the ubuntu package needs an update?
https:/
https:/
```python
Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.20.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from future import standard_library
-------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from future import standard_library
File /usr/lib/
63 import sys
64 import logging
---> 65 import imp
66 import contextlib
67 import types
ModuleNotFoundE
```
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
LANG=C apt-cache policy python3-future
python3-future:
Installed: 0.18.2-6ubuntu2
Candidate: 0.18.2-6ubuntu2
Version table:
*** 0.18.2-6ubuntu2 500
500 http://