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

xtrimomultimer/utils/__init__.py", line 2, No module named 'xtrimomultimer.utils.rich_utils' #11

Open
kehan777 opened this issue Jan 2, 2023 · 4 comments

Comments

@kehan777
Copy link

kehan777 commented Jan 2, 2023

python /inference.py --help

Python 3.7.12
Traceback (most recent call last):
File "/opt/xTrimoMultimer/inference.py", line 34, in
import xtrimomultimer.np.relax.relax as relax
File "/opt/xTrimoMultimer/xtrimomultimer/np/relax/init.py", line 11, in
_modules = [(m, importlib.import_module("." + m, name)) for m in all]
File "/opt/xTrimoMultimer/xtrimomultimer/np/relax/init.py", line 11, in
_modules = [(m, importlib.import_module("." + m, name)) for m in all]
File "/opt/conda/envs/xtrimomultimer/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/xTrimoMultimer/xtrimomultimer/np/relax/relax.py", line 19, in
from xtrimomultimer.np.relax import amber_minimize, utils
File "/opt/xTrimoMultimer/xtrimomultimer/np/relax/amber_minimize.py", line 23, in
import xtrimomultimer.utils.loss as loss
File "/opt/xTrimoMultimer/xtrimomultimer/utils/init.py", line 2, in
from xtrimomultimer.utils.rich_utils import enforce_tags, print_config_tree
ModuleNotFoundError: No module named 'xtrimomultimer.utils.rich_utils'

https://github.com/biomap-research/xTrimoMultimer/tree/main/xtrimomultimer/utils
cann't find rich_utils.py and rich_utils.py

@ssn1771
Copy link

ssn1771 commented Feb 7, 2023

i met the same problem,have you solved that?

@xianyu-123
Copy link

inference.py

import xtrimomultimer.np.relax.relax as relax

utils/init.py
from xtrimomultimer.utils.logger import get_pylogger

from xtrimomultimer.utils.rich_utils import enforce_tags, print_config_tree

from xtrimomultimer.utils.utils import (

close_loggers,

extras,

get_metric_value,

instantiate_callbacks,

instantiate_loggers,

log_hyperparameters,

save_file,

task_wrapper,

)

@addsg
Copy link

addsg commented Aug 17, 2023

I met the same problem as you mention , have you ever solved it?

@xianyu-123
Copy link

xianyu-123 commented Aug 17, 2023 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

4 participants