-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
pre-commit error #2342
Comments
It complains that
but
|
It seems that in this computer, Python cannot install any package inside a virtualenv. virtualenv tmp
source tmp/bin/activate
pip install protobuf # cause same error. So it seems something going wrong in virtualenv. |
Related issue is here |
Just leaving a comment here that we started seeing this error this morning on one of our projects completely unrelated to Paddle (I'm coming from the Google Search here). So might be related to some change in setuptools? |
@alexanderad I think it because the setuptools just release the And it seems that this version adds six as a dependency, but I did not dig into |
@alexanderad Is there any way we can bypass this issue now? It seems that virtualenv will install the newest version of setuptools that we cannot change? |
I've seen on setuptools issue tracker, that setuptools 36 has been removed from pypi index recently. We are back to old 35.0.2. Which effectively means that you can just re-try the build and it should work now. |
You can keep track here: pypa/setuptools#1042 |
I confirm that I can just run |
Not sure if this is related with the fact that we switched to https://github.com/PaddlePaddle/mirrors-yapf.
I tried
pre-commit install
andpre-commit autoupdate
, and they don't fix the following error:The text was updated successfully, but these errors were encountered: