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

Metadata can't be accessed #18

Closed
MattEwen opened this issue Jan 11, 2022 · 1 comment
Closed

Metadata can't be accessed #18

MattEwen opened this issue Jan 11, 2022 · 1 comment

Comments

@MattEwen
Copy link

Hiya! Thanks so much for writing this, very useful and makes doing bulk downloads much more seamless than otherwise. Unfortunately at least on my machine it takes some fiddling to get working. Context, I've installed the package into a venv, using python 3.10 and pip 21.3.1. Both of these are installed in the right places in my venv.

When I call from eia import api, this error occurs: importlib.metadata.PackageNotFoundError. It gets caught in eia/__init__.py: __version__ = metadata.version("eia"). Manually changing this script to reference "pyeia" instead makes it work smoothly, at least for me. Not sure if this issue occurs for other people but wanted to flag it up.

Thanks!

@thomastu
Copy link
Owner

Thanks for catching this, fixed/pushed to 0.1.5

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