Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with Python 3.12 #9

Open
troeger opened this issue Jan 4, 2024 · 0 comments
Open

Breaks with Python 3.12 #9

troeger opened this issue Jan 4, 2024 · 0 comments

Comments

@troeger
Copy link

troeger commented Jan 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant