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

A problem while training model without a property predictor #50

Open
0546trigger opened this issue Sep 25, 2023 · 1 comment
Open

A problem while training model without a property predictor #50

0546trigger opened this issue Sep 25, 2023 · 1 comment

Comments

@0546trigger
Copy link

Error executing job with overrides: ['data=mp_20', 'expname=mp_20']
Traceback (most recent call last):
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/hydra/_internal/utils.py", line 575, in _locate
import_module(mod)
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/gpfs/home/scms/lixiaoyi/cdvae/cdvae/pl_data/datamodule.py", line 15, in
from cdvae.common.data_utils import get_scaler_from_data_list
File "/gpfs/home/scms/lixiaoyi/cdvae/cdvae/common/data_utils.py", line 10, in
from pymatgen.analysis.graphs import StructureGraph
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/pymatgen/analysis/graphs.py", line 22, in
from monty.os.path import which
ImportError: cannot import name 'which' from 'monty.os.path' (/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/monty/os/path.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/gpfs/home/scms/lixiaoyi/cdvae/cdvae/run.py", line 166, in main
run(cfg)
File "/gpfs/home/scms/lixiaoyi/cdvae/cdvae/run.py", line 88, in run
datamodule: pl.LightningDataModule = hydra.utils.instantiate(
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 180, in instantiate
return instantiate_node(config, *args, recursive=recursive, convert=convert)
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 240, in instantiate_node
target = _resolve_target(node.get(_Keys.TARGET))
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 104, in _resolve_target
return _locate(target)
File "/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/hydra/_internal/utils.py", line 577, in _locate
raise ImportError(
ImportError: Encountered error: cannot import name 'which' from 'monty.os.path' (/home/scms/lixiaoyi/anaconda3/envs/cdvae/lib/python3.8/site-packages/monty/os/path.py) when loading module 'cdvae.pl_data.datamodule.CrystDataModule'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

@K0R7-K4MP
Copy link

I solved downgrading the monty package

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