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

ModuleNotFoundError: No module named 'imp' with Python v3.12 #58

Open
appukuttan-shailesh opened this issue Jun 20, 2024 · 3 comments
Open

Comments

@appukuttan-shailesh
Copy link

The imp module has been removed in Python3.12 in favor of importlib.
Ref: https://docs.python.org/3.11/library/imp.html

Deprecated since version 3.4, will be removed in version 3.12: The imp module is deprecated in favor of importlib.

Currently this throws the following error:

Traceback (most recent call last):
File "/home/sappukuttan/miniconda3/bin/hd-bet", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/<>/HD-BET/HD_BET/hd-bet", line 4, in
from HD_BET.run import run_hd_bet
File "/<>/HD-BET/HD_BET/run.py", line 6, in
import imp
ModuleNotFoundError: No module named 'imp'

@andersenthomas
Copy link

Is this open? I'm currently facing the same issue.

@FabianIsensee
Copy link
Member

I just pushed an update and verified that it works with python3.12. Let me know if that resolves it for you as well

@andersenthomas
Copy link

andersenthomas commented Oct 17, 2024 via email

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