Skip to content

"No solution found when resolving dependencies", but pip installs readily #2538

Description

@reece

Summary: uv pip install fails to install a package that pip installs without issue. The package is an alpha release that I pushed to pypi a few minutes ago.

  • A minimal code snippet that reproduces the bug.
$ cd /tmp

$ python3 -m venv venv

$ source venv/bin/activate

$ pip install -U setuptools pip uv

(venv) $ uv pip install --verbose uta-align==0.3.0a5
DEBUG Found a virtualenv through VIRTUAL_ENV at: /tmp/x/venv
DEBUG Cached interpreter info for Python 3.11.6, skipping probing: /tmp/x/venv/bin/python
DEBUG Using Python 3.11.6 environment at /tmp/x/venv/bin/python
DEBUG Using registry request timeout of 300s
DEBUG Solving with target Python version 3.11.6
DEBUG Adding direct dependency: uta-align==0.3.0a5
DEBUG Found fresh response for: https://pypi.org/simple/uta-align/
DEBUG Searching for a compatible version of uta-align (==0.3.0a5)
DEBUG No compatible version found for: uta-align
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of uta-align==0.3.0a5 and you require uta-align==0.3.0a5, we can conclude that the requirements are unsatisfiable.

(venv) $ pip install uta-align==0.3.0a5
Looking in indexes: https://pypi.shr.myome.info/simple
Collecting uta-align==0.3.0a5
  Using cached uta_align-0.3.0a5-cp311-cp311-linux_x86_64.whl
Collecting coloredlogs~=15.0 (from uta-align==0.3.0a5)
  Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting pysam~=0.22 (from uta-align==0.3.0a5)
  Using cached pysam-0.22.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (1.5 kB)
Collecting pyyaml~=6.0 (from uta-align==0.3.0a5)
  Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting humanfriendly>=9.1 (from coloredlogs~=15.0->uta-align==0.3.0a5)
  Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Using cached pysam-0.22.0-cp311-cp311-manylinux_2_28_x86_64.whl (25.1 MB)
Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Installing collected packages: pyyaml, pysam, humanfriendly, coloredlogs, uta-align
Successfully installed coloredlogs-15.0.1 humanfriendly-10.0 pysam-0.22.0 pyyaml-6.0.1 uta-align-0.3.0a5

  • The current uv platform & version
(venv) snafu$ uname -a
Linux snafu 6.5.0-26-generic #26-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar  5 21:19:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

(venv) snafu$ uv --version
uv 0.1.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions