-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
The library fails when being used with Python 3.12, with the following error:
0.321 import pwnedpasswords
0.321 File "/usr/local/lib/python3.12/site-packages/pwnedpasswords/__init__.py", line 26, in <module>
0.321 from .pwnedpasswords import Password
0.321 File "/usr/local/lib/python3.12/site-packages/pwnedpasswords/pwnedpasswords.py", line 20, in <module>
0.322 from future import standard_library
0.322 File "/usr/local/lib/python3.12/site-packages/future/standard_library/__init__.py", line 65, in <module>
0.322 import imp
0.322 ModuleNotFoundError: No module named 'imp'
The reason is the usage of python-future, which is so far not compatible to Python versions >= 3.12:
PythonCharmers/python-future#625
The underlying reason is the removal of the 'imp' module in Python 3.12.
There is a suggested work-around in the issue referenced above, which may be applicable here.
whabanks
Metadata
Metadata
Assignees
Labels
No labels