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

No module named imp #188

Closed
nmlz opened this issue Oct 18, 2023 · 3 comments
Closed

No module named imp #188

nmlz opened this issue Oct 18, 2023 · 3 comments

Comments

@nmlz
Copy link

nmlz commented Oct 18, 2023

Hi!
When trying to import whois I get the error mentioned on the title
Probably it could get fixed by whois using importlib instead of imp?

@PierreAnken
Copy link

Quick fix for me: edit future\standard_library_init_.py
import imp to import importlib as imp

@nmlz
Copy link
Author

nmlz commented Jan 12, 2024

Fixed!

Thank you @PierreAnken!

@nmlz nmlz closed this as completed Jan 12, 2024
@liquidsec
Copy link

liquidsec commented Jan 17, 2024

Can we reopen this so it gets a proper fix instead of a hacky manual one? I've got a project that uses this library as a dependency. It's already making it broken in python 3.12, and it will be a headache for me until it's fixed.

Edit: The issue is in the upstream module https://github.com/PythonCharmers/python-future. I will link to this issue over there to build some pressure to get it fixed.

PythonCharmers/python-future#625

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

No branches or pull requests

3 participants