Open mettler opened 2 weeks ago
Hi @mettler,
Are you using the code in this branch? https://github.com/FAIR-Chem/fairchem/tree/omat24
Yes!
(fairchem) mm@mm fairchem % python3 -m pip install fairchem-core
Requirement already satisfied: fairchem-core in ./lib/python3.12/site-packages (1.2.0)
Requirement already satisfied: ase in ./lib/python3.12/site-packages (from fairchem-core) (3.23.0)
Requirement already satisfied: e3nn>=0.5 in ./lib/python3.12/site-packages (from fairchem-core) (0.5.1)
Requirement already satisfied: lmdb in ./lib/python3.12/site-packages (from fairchem-core) (1.5.1)
Requirement already satisfied: numba in ./lib/python3.12/site-packages (from fairchem-core) (0.60.0)
Requirement already satisfied: numpy<2.0.0,>=1.25.0 in ./lib/python3.12/site-packages (from fairchem-core) (1.26.4)
Requirement already satisfied: orjson in ./lib/python3.12/site-packages (from fairchem-core) (3.10.9)
Requirement already satisfied: pymatgen>=2023.10.3 in ./lib/python3.12/site-packages (from fairchem-core) (2024.10.3)
Requirement already satisfied: pyyaml in ./lib/python3.12/site-packages (from fairchem-core) (6.0.2)
Requirement already satisfied: requests in ./lib/python3.12/site-packages (from fairchem-core) (2.32.3)
Requirement already satisfied: submitit in ./lib/python3.12/site-packages (from fairchem-core) (1.5.2)
Requirement already satisfied: tensorboard in ./lib/python3.12/site-packages (from fairchem-core) (2.18.0)
Requirement already satisfied: torch>=2.2 in ./lib/python3.12/site-packages (from fairchem-core) (2.5.0)
Requirement already satisfied: tqdm in ./lib/python3.12/site-packages (from fairchem-core) (4.66.5)
Requirement already satisfied: wandb in ./lib/python3.12/site-packages (from fairchem-core) (0.18.5)
Requirement already satisfied: sympy in ./lib/python3.12/site-packages (from e3nn>=0.5->fairchem-core) (1.13.1)
Requirement already satisfied: scipy in ./lib/python3.12/site-packages (from e3nn>=0.5->fairchem-core) (1.14.1)
Requirement already satisfied: opt-einsum-fx>=0.1.4 in ./lib/python3.12/site-packages (from e3nn>=0.5->fairchem-core) (0.1.4)
Requirement already satisfied: joblib>=1 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (1.4.2)
Requirement already satisfied: matplotlib>=3.8 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (3.9.2)
Requirement already satisfied: monty>=2024.7.29 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (2024.10.21)
Requirement already satisfied: networkx>=2.2 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (3.4.2)
Requirement already satisfied: palettable>=3.3.3 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (3.3.3)
Requirement already satisfied: pandas>=2 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (2.2.3)
Requirement already satisfied: plotly>=4.5.0 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (5.24.1)
Requirement already satisfied: pybtex>=0.24.0 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (0.24.0)
Requirement already satisfied: ruamel.yaml>=0.17.0 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (0.18.6)
Requirement already satisfied: spglib>=2.5.0 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (2.5.0)
Requirement already satisfied: tabulate>=0.9 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (0.9.0)
Requirement already satisfied: uncertainties>=3.1.4 in ./lib/python3.12/site-packages (from pymatgen>=2023.10.3->fairchem-core) (3.2.2)
Requirement already satisfied: charset-normalizer<4,>=2 in ./lib/python3.12/site-packages (from requests->fairchem-core) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in ./lib/python3.12/site-packages (from requests->fairchem-core) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./lib/python3.12/site-packages (from requests->fairchem-core) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in ./lib/python3.12/site-packages (from requests->fairchem-core) (2024.8.30)
Requirement already satisfied: filelock in ./lib/python3.12/site-packages (from torch>=2.2->fairchem-core) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in ./lib/python3.12/site-packages (from torch>=2.2->fairchem-core) (4.12.2)
Requirement already satisfied: jinja2 in ./lib/python3.12/site-packages (from torch>=2.2->fairchem-core) (3.1.4)
Requirement already satisfied: fsspec in ./lib/python3.12/site-packages (from torch>=2.2->fairchem-core) (2024.10.0)
Requirement already satisfied: setuptools in ./lib/python3.12/site-packages (from torch>=2.2->fairchem-core) (75.2.0)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./lib/python3.12/site-packages (from sympy->e3nn>=0.5->fairchem-core) (1.3.0)
Requirement already satisfied: llvmlite<0.44,>=0.43.0dev0 in ./lib/python3.12/site-packages (from numba->fairchem-core) (0.43.0)
Requirement already satisfied: cloudpickle>=1.2.1 in ./lib/python3.12/site-packages (from submitit->fairchem-core) (3.1.0)
Requirement already satisfied: absl-py>=0.4 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (2.1.0)
Requirement already satisfied: grpcio>=1.48.2 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (1.67.0)
Requirement already satisfied: markdown>=2.6.8 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (3.7)
Requirement already satisfied: packaging in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (24.1)
Requirement already satisfied: protobuf!=4.24.0,>=3.19.6 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (5.28.2)
Requirement already satisfied: six>1.9 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (1.16.0)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in ./lib/python3.12/site-packages (from tensorboard->fairchem-core) (3.0.4)
Requirement already satisfied: click!=8.0.0,>=7.1 in ./lib/python3.12/site-packages (from wandb->fairchem-core) (8.1.7)
Requirement already satisfied: docker-pycreds>=0.4.0 in ./lib/python3.12/site-packages (from wandb->fairchem-core) (0.4.0)
Requirement already satisfied: gitpython!=3.1.29,>=1.0.0 in ./lib/python3.12/site-packages (from wandb->fairchem-core) (3.1.43)
Requirement already satisfied: platformdirs in ./lib/python3.12/site-packages (from wandb->fairchem-core) (4.3.6)
Requirement already satisfied: psutil>=5.0.0 in ./lib/python3.12/site-packages (from wandb->fairchem-core) (6.1.0)
Requirement already satisfied: sentry-sdk>=2.0.0 in ./lib/python3.12/site-packages (from wandb->fairchem-core) (2.17.0)
Requirement already satisfied: setproctitle in ./lib/python3.12/site-packages (from wandb->fairchem-core) (1.3.3)
Requirement already satisfied: gitdb<5,>=4.0.1 in ./lib/python3.12/site-packages (from gitpython!=3.1.29,>=1.0.0->wandb->fairchem-core) (4.0.11)
Requirement already satisfied: contourpy>=1.0.1 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (1.3.0)
Requirement already satisfied: cycler>=0.10 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (4.54.1)
Requirement already satisfied: kiwisolver>=1.3.1 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (1.4.7)
Requirement already satisfied: pillow>=8 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (11.0.0)
Requirement already satisfied: pyparsing>=2.3.1 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (3.2.0)
Requirement already satisfied: python-dateutil>=2.7 in ./lib/python3.12/site-packages (from matplotlib>=3.8->pymatgen>=2023.10.3->fairchem-core) (2.9.0.post0)
Requirement already satisfied: opt-einsum in ./lib/python3.12/site-packages (from opt-einsum-fx>=0.1.4->e3nn>=0.5->fairchem-core) (3.4.0)
Requirement already satisfied: pytz>=2020.1 in ./lib/python3.12/site-packages (from pandas>=2->pymatgen>=2023.10.3->fairchem-core) (2024.2)
Requirement already satisfied: tzdata>=2022.7 in ./lib/python3.12/site-packages (from pandas>=2->pymatgen>=2023.10.3->fairchem-core) (2024.2)
Requirement already satisfied: tenacity>=6.2.0 in ./lib/python3.12/site-packages (from plotly>=4.5.0->pymatgen>=2023.10.3->fairchem-core) (9.0.0)
Requirement already satisfied: latexcodec>=1.0.4 in ./lib/python3.12/site-packages (from pybtex>=0.24.0->pymatgen>=2023.10.3->fairchem-core) (3.0.0)
Requirement already satisfied: ruamel.yaml.clib>=0.2.7 in ./lib/python3.12/site-packages (from ruamel.yaml>=0.17.0->pymatgen>=2023.10.3->fairchem-core) (0.2.12)
Requirement already satisfied: MarkupSafe>=2.1.1 in ./lib/python3.12/site-packages (from werkzeug>=1.0.1->tensorboard->fairchem-core) (3.0.2)
Requirement already satisfied: smmap<6,>=3.0.1 in ./lib/python3.12/site-packages (from gitdb<5,>=4.0.1->gitpython!=3.1.29,>=1.0.0->wandb->fairchem-core) (5.0.1)
This is causing issues for us too — will stress
make it into the main installable branch at some point?
Seems like it should be a simple enough autodiff, right?
Hi @mettler and @corinwagen,
Direct install from PyPi (ie pip install fairchem-core
) will not come with the stress calculations enabled since we have not released this functionality yet. @corinwagen we are working on adding it to the main branch and making a release ASAP, but we need to make sure that the code is reviewed and tested.
For now I recommend cloning the repository and installing from source using this branch
Thanks for the update! We'll hang tight and wait for the release, since pixi
gets a little complicated/unstable with specific branch pinning.
Appreciate all the hard work!
there is another error. I have done the following steps:
git clone https://github.com/FAIR-Chem/fairchem.git cd fairchem git switch omat24 pip install -e packages/fairchem-core
the error is Obtaining file:///home/yumx/env/fairchem/packages/fairchem-core Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Installing backend dependencies ... done Preparing editable metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing editable metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [52 lines of output] Traceback (most recent call last): File "/root/anaconda3/envs/omat24/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 167, in prepare_metadata_for_build_editable hook = backend.prepare_metadata_for_build_editable ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/anaconda3/envs/omat24/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/root/anaconda3/envs/omat24/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/omat24/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 176, in prepare_metadata_for_build_editable
whl_basename = build_hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatchling/build.py", line 83, in build_editable
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 90, in build
self.metadata.validate_fields()
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatchling/metadata/core.py", line 265, in validate_fields
_ = self.version
^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatchling/metadata/core.py", line 149, in version
self._version = self._get_version()
^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatchling/metadata/core.py", line 244, in _get_version
core_metadata = self.core
^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatchling/metadata/core.py", line 196, in core
metadata_hook.update(self.core_raw_metadata)
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatch_fancy_pypi_readme/hooks.py", line 23, in update
config = load_and_validate_config(self.config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatch_fancy_pypi_readme/_config.py", line 38, in load_and_validate_config
fragments = _load_fragments(config.get("fragments"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatch_fancy_pypi_readme/_config.py", line 83, in _load_fragments
frags.append(frag.from_config(frag_cfg))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rj41pgts/overlay/lib/python3.11/site-packages/hatch_fancy_pypi_readme/_fragments.py", line 77, in from_config
contents = path.read_text(encoding="utf-8")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/omat24/lib/python3.11/pathlib.py", line 1058, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/omat24/lib/python3.11/pathlib.py", line 1044, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NotADirectoryError: [Errno 20] Not a directory: 'src/fairchem/core/README.md'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Hi @yumxcode,
Are you trying to install on a windows machine?
If so please follow the windows specific install instructions in the documentation to allow symlinks.
No, I actually installed it on a linux system( ubuntu 22.04 )
Hi! I'm trying to run a hello world:
And getting the following error:
Is there something else I should be doing here or is this an issue somewhere in ase?