You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, let's say I want to add another package, like pandas:
uv add pandas
Output:
No solution found when resolving dependencies:
Because ceic-api-client was not found in the package registry and your project depends on ceic-api-client<=2.7, we can conclude that your project's requirements are unsatisfiable
The same happens if I add Pandas first, then my package, then try to remove Pandas. It's funny because I can run uv sync, uv run, etc. just fine, and I checked the lockfile and the external sources are there:
[[package]]
name = "ceic-api-client"
version = "2.6.1.148"
source = { registry = "https://downloads.ceicdata.com/python" }
dependencies = [
{ name = "certifi" },
{ name = "python-dateutil" },
{ name = "six" },
{ name = "urllib3" },
]
sdist = { url = "https://downloads.ceicdata.com/python/ceic-api-client/ceic_api_client-2.6.1.148.tar.gz" }
What solves it
I have noticed that manually adding the sources to pyproject.toml fixes the issue:
The problem
I am currently working with a package that is only available in an external index. Here are the commands to build my project:
uv init uv add "ceic-api-client<=2.7" --extra-index-url https://downloads.ceicdata.com/python
Now, let's say I want to add another package, like
pandas
:Output:
The same happens if I add Pandas first, then my package, then try to remove Pandas. It's funny because I can run uv sync, uv run, etc. just fine, and I checked the lockfile and the external sources are there:
What solves it
I have noticed that manually adding the sources to pyproject.toml fixes the issue:
I think this should be added automatically, as it already is to the lockfile.
Info
I'm running uv 0.4.11 on Windows 10
The text was updated successfully, but these errors were encountered: