last commit to develop breaks local parser
Closed this issue · 9 comments
parsing locally was working before e98eeb2
now it gives this error:
Traceback (most recent call last):
File "Tests/test_workflow_creator.py", line 9, in
from nomad.client import parse, normalize_all
File "/data/git/nomad/nomad/client/init.py", line 19, in
from .archive import ArchiveQuery
File "/data/git/nomad/nomad/client/archive.py", line 28, in
from nomad import config, metainfo as mi
File "/data/git/nomad/nomad/config.py", line 334, in
north = North()
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic/main.py", line 1038, in pydantic.main.validate_model
File "pydantic/fields.py", line 840, in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators
File "pydantic/class_validators.py", line 280, in pydantic.class_validators._generic_validator_cls.lambda3
File "/data/git/nomad/nomad/config.py", line 328, in load_tools
with open(v, 'rt') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'dependencies/nomad-remote-tools-hub/tools.json'
Can you detail locally? Did you clone the project and did a setup as described in the documentation? Or did you pip install the nomad-lab
python package?
If its the first case, does the file dependencies/nomad-remote-tools-hub/tools.json
exist in your cloned project? Are all the submodules (esp. dependencies/nomad-remote-tools-hub
) updated?
file is there
I followed this instructions: https://nomad-lab.eu/prod/v1/staging/docs/develop/setup.html
as mentioned in this issue: #39
this fixes for me: mdforti@c9fab17
Were you able to check this ?
Just a little context, I am trying to make a python script to generate a equation_of_state workflow archvie.json, similar to this test:
https://github.com/nomad-coe/nomad/blob/develop/tests/normalizing/conftest.py#L636
That is my test_workflow_creator in the traceback.
We are currently working on getting rid of this file entirely.
https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/-/merge_requests/1117
I think this can be closed now! 😄