-
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
"Unable to find installation candidates for" packages cached from a LegacyRepository (/simple
)
#4688
Comments
Thank you for finding this out so quickly, we were just in the middle of triaging our CI failing to build anything. I can confirm on Py 3.9 that pinning
💯 |
As a temporary measure to work around python-poetry/poetry#4688, downgrade CacheControl in the poetry virtualenv to a working version. This fixes renovatebot#366
As a temporary measure to work around python-poetry/poetry#4688, downgrade CacheControl in the poetry virtualenv to a working version. This fixes renovatebot#366
Does a temporary downgrade to |
Unfortunately I don't think so, as I guess that one option to fix the issue (for the short-term) would be to specify an high range for |
Version |
FWIW, I've manually triggered builds from Dependabot and Renovate (which both freshly install Poetry either through If Poetry was installed during the issue (so with either |
As noted above, I feel like leaving this issue open for a short while will be useful to people with installs that still have broken versions of |
This is broken again. Poetry 1.1.11 installed via curl script and pip |
@numine777 Not seeing this problem recurring ; I'm building multi-project python build jobs in CodeBuild that reliably triggered this cache problem, and I'm installing Poetry only via cachecontrol 0.12.10 only seems to amend the package metadata surrounding licenses to make certain license auditing use cases work better, no functional changes that ought to have broken it again. If you like, maybe try this alternative install script : this is the normal |
Hi, I am facing exact same issue as described, using cachecontrol 0.12.10 and two private repos. The issue happens on gitlab ci pipeline but on local machine everything works as expected:
Repository config:
Poetry version
Python 3.10 |
My issue was related to: |
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).CodeBuild image
aws/codebuild/standard:5.0
(Ubuntu 20.04)Poetry 1.1.11 : as installed by
pip
cachecontrol
, at present)install-poetry.py
on a fresh install reproduces this issueIssue
Have been debugging this inside a container based on
aws/codebuild/standard:5.0
(since this is the target build container for our CI pipelines).Pipelines are installing poetry via
pip
and failing. Build works fine on my workstation, even after apoetry self update
, which doesn't seem to update dependencies if they already meet the version constraints (likepip
).After a fresh install of Poetry 1.1.11 via
install-poetry.py
, now also having similar issues (with different symptoms but I presume the same cause) locally.Issues are resolved by activating Poetry's venv and running
This only applies to packages installed (from a Nexus repo) via the
/simple
interface, which uses the LegacyRepository class.Suspected issue
Working on a deeper diagnosis, but thought I'd get the bug report opened.
cachecontrol
released0.12.7
as of 12 hours ago, clearly there is a bug or change in behaviour (aka - bug, for a patch version bump) that breaks Poetry for this use case.The issue seems to be caching of the HTML metadata from the
/simple
type repo ; while the cache file on disk is successfully updated each time it is fetched, the cache-wrapped response object for the metadata returns an empty byte buffer to the program. This results in thePage
object not finding any links andget_links_for_package
failing.In a tree with a lockfile and in an environment with an empty cache, this means you will be able to install that package once and once only - the first time caches the metadata, which then subsequently triggers this bug and prevents further access to the metadata. Sadly all my pipelines build multiple packages with common dependencies.
Now going to look and see what the problem in
cachecontrol
is.Might I humbly suggest that as a tool which promotes stable builds ... that Poetry use some of it's own medicine to install itself, and use a lockfile or output of
pip freeze
to create a reproducible install for a given version. This is definitely not the first occasion on which a reproducible installation would have prevented issues - see #4523 and possibly also #4528Terminal output
also
The text was updated successfully, but these errors were encountered: