-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
New version of virtualenv causes ModuleNotFoundError: No module named 'setuptools' #2178
Comments
We're getting this with Nox too, initially discovered in wntrblm/nox#545 and seemingly fixed by pinning virtualenv to 20.10.0 in wntrblm/nox#547 Just as an extra confirmational data point 🙂 |
please follow up at pypa/virtualenv |
here's the relevant things to follow up on:
why we're suddenly seeing this:
workarounds:
I don't have any say on the upstream projects, but my recommendation would be to:
reproducing this outside of pre-commit / without latest virtualenv / without virtualenv python3 -m venv venv
venv/bin/pip install setuptools==60.1.0 pip==21.3.1
venv/bin/pip install --no-binary :all: isort==5.10.1 |
Note virtualenv will upgrade (by default) to setuptools |
This comment has been minimized.
This comment has been minimized.
## Changes made Set env variable for `SETUPTOOLS_USE_DISTUTILS` that un-breaks the pre-commit github action. This was necessitated by an upstream release of `virtualenv` that upgraded `setuptools`. More details can be found here: pre-commit/pre-commit#2178 ## Screencapture (if applicable) ## Testing - [ ] End-to-End ## Work left to be done
describe your issue
Our pre-commit CI step started failing with this error, and we can see that it now uses virtualenv 20.11.0 instead of 20.10.0 (started failing soon as they released 20.11.0). Changelog mentions:
full output:
pre-commit --version
2.9.2
.pre-commit-config.yaml
~/.cache/pre-commit/pre-commit.log (if present)
No response
The text was updated successfully, but these errors were encountered: