-
Notifications
You must be signed in to change notification settings - Fork 1k
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 1.5 Source Priority (Error processing NoMethodError) #7431
Labels
T: bug 🐞
Something isn't working
Comments
DanielRejniak
changed the title
Error : undefined method `strip' for nil:NilClass
Error : Poetry (undefined method `strip' for nil:NilClass)
Jun 14, 2023
Seeing the same error on our end. We've set PyPI as a "primary" source per their documentation (with our private repo as "supplemental"), using command This creates an entry in [[tool.poetry.source]]
name = "PyPI"
priority = "primary" Is there an issue here due to the missing |
DanielRejniak
changed the title
Error : Poetry (undefined method `strip' for nil:NilClass)
Poetry Source Priority (Error processing NoMethodError)
Jun 15, 2023
DanielRejniak
changed the title
Poetry Source Priority (Error processing NoMethodError)
Poetry 1.5.0 Source Priority (Error processing NoMethodError)
Jun 15, 2023
DanielRejniak
changed the title
Poetry 1.5.0 Source Priority (Error processing NoMethodError)
Poetry 1.5 Source Priority (Error processing NoMethodError)
Jun 15, 2023
1 task
We see the same error with: [tool.poetry.dependencies]
torch = { version = "2.0.1+cpu", source = "torchcpu" }
[[tool.poetry.source]]
name = "torchcpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit" |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Package ecosystem
Poetry
Package manager version
Language version
python 3.10
Manifest location and content before the Dependabot update
No response
dependabot.yml content
Updated dependency
No response
What you expected to see, versus what you actually saw
Context
Poetry 1.5.0 introduces priority key to sources. After the priority key was introduced all the dependencies failed to update with the following error.
Our
pyproject.toml
has two sources one for pypi and one for out private repo.What is the error
All the packages fail to update the root of the error starts with
Error processing (NoMethodError)
following with and attempt to strip the url in the updater. The example below is only one error for pyyaml package but all other packages yield the same error.What we expect
We would have expected the dependecies to be updated without the above errors.
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
The easiest way to reproduce this error is to create a basic poetry project and add two sources one for pypi and one for private repo.
Next navigate to the Insights and observe the dependabot attempting to update the packages with the failure above.
The text was updated successfully, but these errors were encountered: