-
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
poetry-core 1.0.5 fails to find installation candidate #4528
Comments
install from gemfury not working, gemfury has only md5 hashes. how it hotfix? |
Duplicate of #4523? |
Not sure about that - the error message is distinct. It could be related, however. |
I'd like to add that members of my team have had the same exact issue. We had numerous accounts of the same exact error message on recently (within the last ~1-2 weeeks) failing CI builds. The required packages were not being install (so What is strange is that our lock files actually had been broken for months. Our hypthesis is that the recent introduction of the newer poetry versions added some error checking (changelog from We've also tried the upgrading/downgrading of poetry and python across |
@Asciotti are you also using |
We had no issues with We tried recreating the lock files numerous times across multiple machines + poetry versions + python versions + os's. The user's machines who were consistently creating malformed lock files continued to do that. We tried this with a minimal reproducible I have to go collect the user's info to get debugging environment - as I said, my machine hasn't been affected. |
Here is one of our data points, we just tried downgrading OS:
Notice we are still missing Will try to downgrade |
We just ran into this on my team. For us, the problem was one of our teammates had an older version of Poetry installed (1.0.5) and generated a lockfile. When we tried to install dependencies in a Docker image with Poetry 1.1.8, it failed with the stack trace given in the original report above. Regenerating the lock file with 1.1.8 resolved the problem. |
Closing this as there have been no reports recently of anything related, and there was not a reproduction in this issue. If you're running into something similar, please open a new issue after troubleshooting as much as you can (and consider reaching on Discord if you need help troubleshooting). |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: RHEL 7, CentOS 7, and others
Poetry version: 1.1.4, 1.1.8, 1.1.9
Issue
Upon upgrading to poetry 1.1.9, I observed that I could no longer install a specific package in some of my projects. The package exists in two places - pypi.org, and an internal repo (running Nexus). In both places, the package is identical (i.e. same hash). Both pypi.org (as a default) and my internal repo (via configuration in pyproject.toml) is available for these projects.
When I try to install, I get the following:
The relevant parts of
poetry.lock
are:and
(interestingly, in that second section, the two entries are not relevant to my platform/python version. Other entries exist on both pypi.org and my internal repo)
After noticing these failures with 1.1.9, I downgraded to 1.1.8, and eventually back to the last-known-good 1.1.4. The problem continued to occur. Once I downgraded poetry-core from 1.0.5 to 1.0.4, the issue resolved (with both poetry 1.1.4 and 1.1.9).
This looks vaguely familiar to other issues like #3456, and I also encountered something that looks like #4523 today while debugging, but I think those issues are distinct from this specific problem.
The text was updated successfully, but these errors were encountered: