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

Can't find matching wheels with the --find-links flag #6082

Closed
santacodes opened this issue Aug 14, 2024 · 3 comments · Fixed by #6622
Closed

Can't find matching wheels with the --find-links flag #6082

santacodes opened this issue Aug 14, 2024 · 3 comments · Fixed by #6622
Assignees
Labels
compatibility Compatibility with a specification or another tool upstream An upstream dependency is involved

Comments

@santacodes
Copy link

Overview

OS - Linux
uv version - 0.2.36

I run into this error while trying to install a package from a wheel from an external link with the --find-links flag while trying to install a specific version of iree-compiler with uv defined in my pyproject.toml as -

[project.optional-dependencies]
iree = [
    # must be pip installed with --find-links=https://iree.dev/pip-release-links.html
    "iree-compiler==20240507.886",  # see IREE compatibility notes in noxfile.py
]

Steps to reproduce

When I run uv pip install .[iree] --find-links https://iree.dev/pip-release-links.html --verbose, this is what I get -

DEBUG Using request timeout of 30s
DEBUG Found fresh response for: https://iree.dev/pip-release-links.html
WARN No packages found in `--find-links` entry: https://iree.dev/pip-release-links.html
DEBUG Found fresh response for: https://iree.dev/pip-release-links.html
WARN No packages found in `--find-links` entry: https://iree.dev/pip-release-links.html
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of iree-compiler==20240507.886 and pybamm[iree]==24.5 depends on iree-compiler==20240507.886, we can conclude that
      pybamm[iree]==24.5 cannot be used.
      And because only pybamm[iree]==24.5 is available and you require pybamm[iree], we can conclude that the requirements are unsatisfiable.

The package wheels of the iree-compiler==20240507.886 are present in that link and work with pip, but not with uv.

When I run the same command with pip (pip install .[iree] --find-links https://iree.dev/pip-release-links.html), it successfully downloads and builds the wheels for my package.

Looking in links: https://iree.dev/pip-release-links.html
Processing /home
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting iree-compiler==20240507.886 (from pybamm==24.5)
  Downloading https://github.com/iree-org/iree/releases/download/candidate-20240507.886/iree_compiler-20240507.886-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (64.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 MB 6.3 MB/s eta 0:00:00
@charliermarsh
Copy link
Member

I can take a look.

@charliermarsh charliermarsh self-assigned this Aug 14, 2024
@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Aug 14, 2024
@charliermarsh
Copy link
Member

I've isolated this to a bug in https://github.com/y21/tl. I'll try to fix it there.

@charliermarsh
Copy link
Member

See: y21/tl#68

@charliermarsh charliermarsh added the upstream An upstream dependency is involved label Aug 14, 2024
charliermarsh added a commit that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with a specification or another tool upstream An upstream dependency is involved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants