-
Notifications
You must be signed in to change notification settings - Fork 284
Description
Describe the bug
Strange bug with uv when I try to do a clean install of cocoindex via uv init && uv add cocoindex - it fails to install, with this error:
❯ uv init
❯ uv add cocoindex
Using CPython 3.13.7
Creating virtual environment at: .venv
Resolved 15 packages in 7ms
error: Distribution `cocoindex==999.0.0 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform
hint: You're on macOS (`macosx_15_0_arm64`), but `cocoindex` (v999.0.0) only has wheels for the following platform: `win_amd64`; consider adding "sys_platform == 'darwin' and platform_machine == 'arm64'" to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels
However, when I do uv venv and then uv pip install cocoindex, it works perfectly:
❯ uv pip install cocoindex
Resolved 13 packages in 3ms
Installed 13 packages in 18ms
+ anyio==4.12.0
+ click==8.3.1
+ cocoindex==0.3.11
+ idna==3.11
+ markdown-it-py==4.0.0
+ mdurl==0.1.2
+ numpy==2.3.5
+ psutil==7.1.3
+ pygments==2.19.2
+ python-dotenv==1.2.1
+ rich==14.2.0
+ typing-extensions==4.15.0
+ watchfiles==1.1.1
To Reproduce
Steps to reproduce the behavior:
Starting from a clean directory, we run the following:
uv init
uv add cocoindex
Expected behavior
uv add cocoindex and uv pip install cocoindex should have the identical behaviour.
Screenshots
If applicable, add screenshots to help explain your problem.
CocoIndex Version
0.3.11
Additional context
The issue with uv add seems to be that there's a public cocoindex package on PyPI with the version 999.0.0. Perhaps removing this registered version from PyPI will help uv add identify the latest correct release version?