-
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 1.1.4 - "Unable to find installation candidates" when using a private secondary repository #3456
Comments
This is how I setup private pypi
Let me know if it fixes the issue |
Looks like #3406 solves it. |
As a workaround for folks until 1.2 comes out, explicitly adding pypi back as a primary source seems to work:
|
This doesn't work for me:
Error message:
My pyproject.toml:
|
I got this working by setting default on the public pypi:
Tried using with
|
I ran into this (poetry 1.1.2) when running I tried running The only thing that fixed this for me was to delete the |
I just ran into this version info: py3.9, Poetry version 1.1.6 Running |
Same error for another package, not sure why
EDIT: Downgrading Kaleido to 0.2.1 fixed it. |
@lambda-science ==> |
Is there any way we can get a dependency |
I get a similar issue with [tool.poetry]
name = "zzz"
version = "0.1.0"
description = "debugging"
authors = ["lrrr <ruler@omicron-persei.eight>"]
readme = "README.md"
# Broken: Unable to find installation candidates for regex (2022.9.13)
[[tool.poetry.source]]
name = "private-pypi"
url = "https://pypi.private-pypi.com.au/simple"
# Works
#name = "private-pypi"
#url = "https://pypi.private-pypi.com.au/simple"
#default = false
#secondary = false
#
#[[tool.poetry.source]]
#name = "pypi-public"
#url = "https://pypi.org/simple/"
#default = true
[tool.poetry.dependencies]
python = "3.7.9"
regex = "2022.9.13"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" |
I got a similar error with poetry 1.3.2 in CI/CD for the regex package:
I solved it by removing the virtual environment (with python 3.9.16) and clearing the caches. |
Similar error in Poetry 1.3.2 for httpstan package
Removing virtual environment didn't help. |
@patrick-dd You really need to clear the caches too. It's not a problem to clear them - it will just be slower when installing the dependencies again because they need to be downloaded again. |
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
I have a project that uses a private package.
But for some reason, when using poetry 1.1.4, the
poetry.lock
file generated on MacOS is in broken.I receive the following error:
I've reproduced this issue with a simple
pyproject.toml
that looks like this:The
poetry.lock
file:I've found out that when using
poetry==1.1.3
, the lock file generated is a little different.It doesn't contain the
[package.source]
section on packages from PyPI(With this lock file, the
poetry install
command works with no problem)Also, I tried to reproduce the issue on Ubuntu, but
poetry==1.1.4
works with no problem there (was running my tests from a docker container)I've seen this issue: #3151 but I don't think it's related
Is this a bug?
The text was updated successfully, but these errors were encountered: