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

BSE has no metadata #310

Open
susilehtola opened this issue Jun 15, 2024 · 2 comments
Open

BSE has no metadata #310

susilehtola opened this issue Jun 15, 2024 · 2 comments

Comments

@susilehtola
Copy link
Contributor

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
@bennybp
Copy link
Member

bennybp commented Jun 17, 2024

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)

@susilehtola
Copy link
Contributor Author

Yes, BSE used to work straight as a git repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants