-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Invalid hashes errors on fresh install #4883
Comments
I ran into the same issue and fixed it by uninstalling poetry, completely removing Poetry's cache directory, and reinstalling Poetry: curl -sSL https://install.python-poetry.org | python3 - --uninstall
# if the above command tells you poetry isn't installed, try this instead (poetry's previous installer has recently been deprecated):
# curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --uninstall
rm -r ~/.cache/pypoetry
# if your poetry cache is somewhere else, this tells you where: poetry config --list
curl -sSL https://install.python-poetry.org | python3 - |
I also see this (and for Torch too) in my CI runs. It doesn't happen every time and re-running the CI run usually fixes it. Does poetry support parallel installs or is there a chance the cache is getting over-written or something? |
I am also seeing this when running parallel installs. Setting this |
I'm able to consistently reproduce this issue by doing something like this:
This produces the "invalid hashes" error mentioned in the original post if one project tries to read a package from the Poetry cache while the other project is in the process of writing it to the Poetry cache. Setting |
I find this happens using https://github.com/enpaul/tox-poetry-installer since |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Tried installing to a venv with a clean install of poetry. I am using pyenv to maintain python versions so I do:
This leads to the error
The text was updated successfully, but these errors were encountered: