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

Problem in running utest.py: ModuleNotFoundError: No module named 'Analysis' #31

Open
a-firdaus opened this issue May 31, 2023 · 1 comment

Comments

@a-firdaus
Copy link

a-firdaus commented May 31, 2023

I use python 3.8 for installing KMCLib version 2.0-a1

I have an error, it says no module named 'Analysis':
Traceback (most recent call last): File "utest.py", line 13, in <module> from KMCLibTest import KMCLibTests File "/home/azka/02_Software/KMCLib-2.0-a1/python/unittest/KMCLibTest/KMCLibTests.py", line 12, in <module> from Analysis import AnalysisTests ModuleNotFoundError: No module named 'Analysis'

Eventhough I had installed it before successfully
$ python3.8 -m pip install analysis Requirement already satisfied: analysis in /home/azka/anaconda3/envs/kmclib2/lib/python3.8/site-packages (0.1.7)

Do you know why does this happen?

@jalchemy
Copy link

jalchemy commented Apr 3, 2024

Just encountered the same issue with KMCLib-1.1.1.

The solution for me was to explicitly add the location of modules required by KMCLibTests.py to the PYTHONPATH, i.e. add the following to your .bashrc:
export PYTHONPATH=<path-to-KMCLib-dir>KMCLib-1.1.1/python/unittest/KMCLibTest:${PYTHONPATH}

Unfortunately I get further errors testing the python backend that prevent me from confirming I can get a working setup, but the above should at least get you past these module import errors.

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

2 participants