You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating to current master and trying to import BSE throws an error
$ python add_et.py
Traceback (most recent call last):
File "/usr/lib64/python3.12/importlib/metadata/__init__.py", line 397, in from_name
return next(cls.discover(name=name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/work/basis_set_exchange-historical/positronic/add_et.py", line 3, in <module>
from basis_set_exchange import lut, manip, curate
File "/home/work/basis_set_exchange/basis_set_exchange/__init__.py", line 58, in <module>
__version__ = version("basis_set_exchange")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/importlib/metadata/__init__.py", line 889, in version
return distribution(distribution_name).version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/importlib/metadata/__init__.py", line 862, in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/importlib/metadata/__init__.py", line 399, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for basis_set_exchange
The text was updated successfully, but these errors were encountered:
I think you are trying to run that script from within the package directory without first installing the package into the python environment. After doing that, it works for me.
pip install -e ./ (or wherever the pyproject.toml is)
Updating to current master and trying to import BSE throws an error
The text was updated successfully, but these errors were encountered: