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

[Bug]: Running error in the GAP example in notebook #677

Open
2 of 4 tasks
aishwaryo opened this issue Nov 18, 2024 · 0 comments
Open
2 of 4 tasks

[Bug]: Running error in the GAP example in notebook #677

aishwaryo opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aishwaryo
Copy link

Email (Optional)

No response

Version

v2024.6.13 latest

Which OS(es) are you using?

  • MacOS
  • Windows
  • Linux

What happened?

I have installed GAP using https://github.com/libatoms/QUIP. I am attempting the example give in the notebook but getting some error. using 'which gap_fit' yields the correct path.

Code snippet

gap = GAPotential()
gap.train(
    train_structures=train_structures,
    train_energies=train_energies,
    train_forces=train_forces,
    sparse_method="cur_points",
    l_max=8,
    n_max=8,
    e0=-0.97,
    n_sparse=200,
    cutoff=5.0,
)

Log output

if not which("gap_fit"):
SYSTEM ABORT: Exit: Mandatory argument(s) missing...   
STOP 1
Traceback (most recent call last):

  Cell In[11], line 2
    gap.train(

  File ~/.local/lib/python3.8/site-packages/maml/apps/pes/_gap.py:364 in train
    tree, element_param, potential_label = get_xml(xml_filename)

  File ~/.local/lib/python3.8/site-packages/maml/apps/pes/_gap.py:350 in get_xml
    tree = ET.parse(xml_file)

  File ~/anaconda3/lib/python3.8/xml/etree/ElementTree.py:1202 in parse
    tree.parse(source, parser)

  File ~/anaconda3/lib/python3.8/xml/etree/ElementTree.py:584 in parse
    source = open(source, "rb")

FileNotFoundError: [Errno 2] No such file or directory: 'train.xml'

Code of Conduct

  • I agree to follow this project's Code of Conduct
@aishwaryo aishwaryo added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant