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

running nosetests isochrones gives me the following error: ModuleNotFoundError: No module named 'imp' #193

Open
kasitennis opened this issue Jun 26, 2024 · 3 comments

Comments

@kasitennis
Copy link

I got the same "ModuleNotFoundError" as below:

$ nosetests isochrones
Traceback (most recent call last):
File "/Users/sczoo/anaconda2/envs/isochrones/bin/nosetests", line 6, in
from nose import run_exit
File "/Users/sczoo/anaconda2/envs/isochrones/lib/python3.12/site-packages/nose/init.py", line 1, in
from nose.core import collector, main, run, run_exit, runmodule
File "/Users/sczoo/anaconda2/envs/isochrones/lib/python3.12/site-packages/nose/core.py", line 12, in
from nose.loader import defaultTestLoader
File "/Users/sczoo/anaconda2/envs/isochrones/lib/python3.12/site-packages/nose/loader.py", line 21, in
from nose.importer import Importer, add_path, remove_path
File "/Users/sczoo/anaconda2/envs/isochrones/lib/python3.12/site-packages/nose/importer.py", line 12, in
from imp import find_module, load_module, acquire_lock, release_lock
ModuleNotFoundError: No module named 'imp'

@lowestindorm
Copy link

I‘ve the same problem, do u know how to solve this?

@timothydmorton
Copy link
Owner

FYI I am no longer maintaining this package so can't offer much in the way of direct support. However, you might try downgrading the version of python (try 3.10 or 3.11) and see if that helps.

@zqqian
Copy link

zqqian commented Nov 30, 2024

I got the same problem in Python 3.12, and I tried to downgrade to Python 3.11. It works.

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

4 participants