Skip to content
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 fails to check package from PyPI if it was found for another arch on a private repo #5227

Closed
3 tasks done
Mindstan opened this issue Feb 23, 2022 · 3 comments
Closed
3 tasks done
Labels
kind/question User questions (candidates for conversion to discussion) status/wontfix Will not be implemented

Comments

@Mindstan
Copy link

  • 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: Ubuntu 20.04 amd64 with pyenv (python 3.6)

  • Poetry version: 1.1.13

  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/Mindstan/a39bd8d014c8e9b4e4f47535e755ba68

Issue

We are a team using machine/deep learning on Nvidia Jetson devices (aarch64), and our project depends on scipy@1.5.2. Because its wheel is not available on pypi.org, we built it once and uploaded it on our private Python repository (and only for this architecture).

Until now, we were using pip, and pip's behavior is to search on our private repo, and if it does not find the wheel, then it looks on official PyPI for it.

We are trying now to migrate our infrastructure on poetry. I started by an empty pyproject.toml, added our private source, then tried to add the dependencies one-by-one, until it failed on scipy (poetry add scipy@1.5.2). By looking at the logs (joined in the gist), it is clear that poetry found the package in both private and official repositories, but didn't want to look for wheels in the pypi.org one.

@Mindstan Mindstan added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 23, 2022
@sneakers-the-rat
Copy link
Contributor

Seems related to #5205 (in that case the private repo got wheels for a different architecture, but not including wheels from PyPI when an additional repository is the same)

@neersighted neersighted added kind/question User questions (candidates for conversion to discussion) status/wontfix Will not be implemented and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 2, 2022
@neersighted
Copy link
Member

What you want is not possible -- Poetry will not merge dists across repos, especially as we have no way to know if a package is truly the same. However, what you are trying to achieve is possible/soon will be -- see #5205.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/question User questions (candidates for conversion to discussion) status/wontfix Will not be implemented
Projects
None yet
Development

No branches or pull requests

3 participants