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

ModuleNotFoundErrorModuleNotFoundError: : No module named 'lib.core'No module named 'lib.core' #8

Open
Taylorminer opened this issue Feb 6, 2022 · 3 comments

Comments

@Taylorminer
Copy link

I meet this error.
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
from lib.core.config import config
ModuleNotFoundError: No module named 'lib.core'
/media/chen-group/9400EADF00EAC778/cy/mvp-main
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
from lib.core.config import config
ModuleNotFoundError: No module named 'lib.core'
/media/chen-group/9400EADF00EAC778/cy/mvp-main
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
from lib.core.config import config
ModuleNotFoundError: No module named 'lib.core'
/media/chen-group/9400EADF00EAC778/cy/mvp-main
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
from lib.core.config import config
ModuleNotFoundError: No module named 'lib.core'
/media/chen-group/9400EADF00EAC778/cy/mvp-main
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
from lib.core.config import config
ModuleNotFoundError: No module named 'lib.core'
/media/chen-group/9400EADF00EAC778/cy/mvp-main
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
from lib.core.config import config
ModuleNotFoundError: No module named 'lib.core'
/media/chen-group/9400EADF00EAC778/cy/mvp-main
/media/chen-group/9400EADF00EAC778/cy/mvp-main
Traceback (most recent call last):
Traceback (most recent call last):
File "run/validate_3d.py", line 35, in
File "run/validate_3d.py", line 35, in
from lib.core.config import configfrom lib.core.config import config

ModuleNotFoundErrorModuleNotFoundError: : No module named 'lib.core'No module named 'lib.core'

Can you tell me how to solve it ?

@liqikai9
Copy link

liqikai9 commented Feb 7, 2022

I think you can refer to #5 and add lib to the PYTHONPATH. For example, add the following line in run\_init_paths.py

add_path(${MVP_ROOT_FOLDER}/lib)

@Taylorminer
Copy link
Author

Thanks for your reply. There is 'add_path(lib_path)' in _init_paths.py. Is it necessary to add 'add_path(${MVP_ROOT_FOLDER}/lib)'?

@liqikai9
Copy link

liqikai9 commented Feb 9, 2022

I think it is necessary. You can try it.

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