pip release client error
Importing ArchiveQuery
fails for all releases on pip
from version 1.1.7. Last working release was the one before (1.0.8).
I created a fresh python 3.10 venv
and (only) installed nomad-lab
from pip. The error is the following:
Python 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from nomad.client import ArchiveQuery
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<path-to-venv>/lib/python3.10/site-packages/nomad/client/__init__.py", line 19, in <module>
from .archive import ArchiveQuery
File "<path-to-venv>/lib/python3.10/site-packages/nomad/client/archive.py", line 28, in <module>
from nomad import config, metainfo as mi
File "<path-to-venv>/lib/python3.10/site-packages/nomad/config/__init__.py", line 95, in <module>
north = NORTH()
File "pydantic/main.py", line 340, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1077, in pydantic.main.validate_model
File "pydantic/fields.py", line 867, in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1148, in pydantic.fields.ModelField._apply_validators
File "pydantic/class_validators.py", line 285, in pydantic.class_validators._generic_validator_cls.lambda4
File "<path-to-venv>/lib/python3.10/site-packages/nomad/config/models.py", line 272, in load_tools
with open(path, 'rt') as f:
FileNotFoundError: [Errno 2] No such file or directory: '<path-to-venv>/lib/python3.10/site-packages/nomad/config/../../dependencies/nomad-remote-tools-hub/tools.json'