-
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 insists on intalling packages from private repository #7842
Comments
this is expected: secondary sources do not take precedence over pypi, but they are still searched. Poetry is not "insisting on installing packages from private repository": if it were able to find a suitable version of Please read the documentation
Please close. |
But why is it searching for public packages like pandas, numpy, loguru and all others public dependencies only in private source? Shouldn't it install from PyPi if they were not found in private source?
|
what makes you believe that it is searching for these packages only in the private repository and not even trying pypi? You have given no evidence to support this. |
@dimbleby Would it not make sense to limit the private source to only the packages where it is specified? Or at least provide an option to do so. E.g. even if I mark just one single dependency in my |
@jakobkogler see #6713 this issue should be closed, the reporter has simply guessed wrong about what poetry is doing |
@dimbleby, wouldn't this Thus, the failure message This is clearly indicating that |
Yes, poetry is looking for pandas in the private repo. But what you are claiming is that poetry is not looking on pypi: and that message does not have that implication at all. What This also implies nothing about whether poetry could or could not find pandas or where it looked for pandas: it means only what it says. poetry cannot find Please close |
Closing as decided above. Plus, Poetry 1.5 now (supplemental/explicit sources) allows to solve the initial issue. |
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) and have included the output below.There is also the
poetry.toml
file:Issue
Since it's a private package from Google Cloud, I've installed the libraries for authentication:
And I've authenticate with both
gcloud auth login
andgcloud auth application-default login
When I install the depencencies:
$ poetry install Updating dependencies Resolving dependencies... (my-private-package): Authorization error accessing https:project-id/my-private-package/simple/google-cloud-aiplatform/ Resolving dependencies... (my-private-package): Authorization error accessing https:project-id/my-private-package/simple/kfp/ Resolving dependencies... (my-private-package): Authorization error accessing https:project-id/my-private-package/simple/pre-commit/ Resolving dependencies... (my-private-package): Authorization error accessing https:project-id/my-private-package/simple/black/ Resolving dependencies... (my-private-package): Authorization error accessing https/project-id/my-private-package/simple/mkdocs/ Resolving dependencies... (my-private-package): Authorization error accessing https/project-id/my-private-package/simple/ipykernel/ Resolving dependencies... (my-private-package): Authorization error accessing https/project-id/my-private-package/simple/loguru/ Resolving dependencies... (my-private-package): Authorization error accessing https/project-id/my-private-package/simple/db-dtypes/ Resolving dependencies... (my-private-package): Authorization error accessing https/project-id/my-private-package/simple/pandas/ Resolving dependencies... (my-private-package): Authorization error accessing https/project-id/my-private-package/simple/google-cloud-bigquery/ Because my-project depends on my-private-package which doesn't match any versions, version solving failed.
The
poetry install
command insists searching packages at private repository.The documentation is clear about the behaviour: https://python-poetry.org/docs/repositories/#project-configuration
And although all private sources (there is only one) in my project are defined as secondary
secondary = true
and explicitly as not default withdefault = false
(see below), poetry still used it to search for packages.The text was updated successfully, but these errors were encountered: