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

Import Error #2

Open
LeonardoBarneschi opened this issue Jul 19, 2023 · 1 comment
Open

Import Error #2

LeonardoBarneschi opened this issue Jul 19, 2023 · 1 comment

Comments

@LeonardoBarneschi
Copy link

Hi, I have tried to use field_schnet.
On the installation side, everything looks fine, but when I tried to call "field_schnet_run.py" for the very first test in the README of field_schnet I get the following error.

Traceback (most recent call last):
File "/home/Leo/field_schnet/./src/scripts/field_schnet_run.py", line 10, in
from field_schnet.utils.script_utils import evaluate_dataset
File "/home/Leo/.local/lib/python3.10/site-packages/field_schnet/init.py", line 2, in
from field_schnet import atomistic
File "/home/Leo/.local/lib/python3.10/site-packages/field_schnet/atomistic/init.py", line 1, in
from field_schnet.atomistic.model import *
File "/home/Leo/.local/lib/python3.10/site-packages/field_schnet/atomistic/model.py", line 5, in
from schnetpack import Properties
ImportError: cannot import name 'Properties' from 'schnetpack' (/home/Leo/.local/lib/python3.10/site-packages/schnetpack/init.py)

Looks like indeed in the init file of schnetpack, "Properties" is being imported but with lower case p (properties).

Could you please help me figure out what I could possibly be doing wrong?

@LeonardoBarneschi
Copy link
Author

Sorry, for posting here again, but it looks like it might be solved downgrading the schnetpack package. With schnetpack=0.30 it seems to be working. A lot of schnetpack constructs called by field_schnet looks very different in latest versions of schnetpack.

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

1 participant