-
Notifications
You must be signed in to change notification settings - Fork 38
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
ModuleNotFoundError: No module named 'pkg_resources' #143
Comments
PS This is low priority since it isn't triggered if you use the recommended way of installing. I just bumped into it because I start projects using pdm: $ pdm add circup
[…]
$ pdm run circup --help
Traceback (most recent call last):
File "/home/chars/Projects/spukhaft/__pypackages__/3.7/bin/circup", line 5, in <module>
from circup import main
File "/home/chars/Projects/spukhaft/__pypackages__/3.7/lib/circup/__init__.py", line 23, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources' |
@CharString, I'm not sure what PDM is, but please feel free to submit a PR and we're all happy to have a look at what the fix would be. |
Just hit this one on a fresh install of Python 3.12 on Windows
Running pip install setuptools fixes this issue
It looks like its an undeclared runtime dependency that someone starting from scratch is going to hit. Can setuptools be added to the requirements? |
Thank you @putz612, that solved it for me too. |
See #143 for a generalization of the issue here. |
I installed circup with Just leaving this here for future readers. |
We have a runtime dependency on setuptools:
circup/circup/__init__.py
Line 23 in 86ff01c
but it's not named in the
install_requires
circup/setup.py
Lines 25 to 34 in 86ff01c
Alternatively we could migrate to
importlib.resources
(new in Python 3.7, but a backport for 3.6 exists)https://docs.python.org/3/library/importlib.html#module-importlib.resources
The text was updated successfully, but these errors were encountered: