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' when installing environment #2122
Comments
it looks like you're using the zipapp and that |
Thanks for the tip. Requiring
But this worked instead:
If this is the right code to modify, I can create a pull request. I don't know the impact of this change, if it breaks tests, etc. Thanks! |
no so the reason it would need to have an the patch you suggested above is not correct, the zipapp intentionally isolates itself from the system |
Oh, I see... I got it now, thanks. I'll create a pull request on |
as a workaround until |
|
@SandeepGamot you must have some different issue entirely -- this is specifically about the zipapp and your action probably did not fix it. pre-commit doesn't depend on pkg_resources |
@SandeepGamot Your command also worked for me using pre-commit 3.5.1 installed via brew. Sorry to add to this thread, but this is the top search result for the error. |
please report to homebrew instead of hacking around it here |
Hi.
I'm getting the error below both on Python 3.10.0 and 3.9.7, only on this
mirrors-prettier
repo.Below is what I tried so far, to no success.
I'd appreciate any lead, hint or help.
Thanks!
I tried reinstalling
setuptools
with bothpython
executables:Here are the contents of
/Users/aa/.cache/pre-commit/pre-commit.log
:/Users/aa/.cache/pre-commit/pre-commit.log
version information
error information
The text was updated successfully, but these errors were encountered: