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

Replace pkg_resources by importlib.metadata #141

Closed
wants to merge 1 commit into from

Conversation

seignovert
Copy link

@seignovert seignovert commented Sep 4, 2023

Hi,
Thanks for this nice module!

I'm working on a project that does not require setuptools and I'm getting an ModuleNotFoundError: No module named 'pkg_resources'.

This issue was introduced in #129 when the script tries to infer its version dynamically. A simple workaround is it to use importlib.metadata native library (for python ≥ 3.8 and already backported in requirements.in for python 3.7) instead of pkg_resources.

@gforcada
Copy link
Owner

Oh, thanks, sorry, I forgot to see this one, and I already created #143 and already merged #144 which is needed, otherwise importlib.metadata is not available.

@gforcada gforcada closed this Sep 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants