uv: Can't resolve a package version from private gitlab package index
I have a dependency managed with poetry, uploaded to a private gitlab package index. In a dependant uv project I try to add it:
$ uv add --index ${GITLAB_INDEX} livity-airtable
× No solution found when resolving dependencies: ╰─▶ Because there are no versions of livity-airtable and your project depends on livity-airtable, we can conclude that your project’s requirements are unsatisfiable.
hint:
livity-airtablewas found on ${GITLAB_INDEX}, but not at the requested version (all versions of livity-airtable). A compatible version may be available on a
The message doesn’t make it easier (package found but couldn’t match version, even though I didn’t request any); running with -v doesn’t give any useful information.
Both projects are pure python and have exactly the same Requires-Python: >=3.11,<3.12
$ uv --version uv 0.5.4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 61 (26 by maintainers)
Commits related to this issue
- Add documentation on using dependencies from private GitLab package indexes. Relates to #9331 — committed to rafalkrupinski/uv by deleted user 2 years ago
- Avoid subsequent index hint when no versions are available on the first index (#9332) As reported in https://github.com/astral-sh/uv/issues/9331, this hint is misleading. --------- Co-authored-by: ... — committed to astral-sh/uv by zanieb 2 years ago
I’m just not sure these three values are all we’ll ever need and I find such usage unintuitive. Doesn’t need to be ‘github’| ‘gitlab’, can be ‘try-unauthenticated-first’ or any descriptive value.
Anyway, I should stop arguing, I don’t commit or contribute in this project. I’ll just drop this
Cheers
edit: I don’t commit or contribute, other than that documentation I intend to do
It’s still not work for me, the package, utensils, I’m pretty sure it’s in my private repository, I tried three strategies of uv and tried to specify the version of the package, but it still didn’t work. Anyone give me some advice please 😭
@rafalkrupinski The change was in https://github.com/astral-sh/uv/pull/3130