Open charliermarsh opened 1 week ago
This is an interesting issue. The final error is like:
error: Requirements contain conflicting URLs for package `autogen-core`:
- file:///Users/crmarsh/.cache/uv/git-v0/checkouts/2b1782d8bf4da9cf/4084a9f3/python/packages/autogen-core
- git+https://github.com/microsoft/autogen.git@staging#subdirectory=python/packages/autogen-core
autogen
actually uses uv workspaces itself, which is the source of the problem.
Thanks for opening this ticket @charliermarsh . I realized after reporting in the other thread that there was an issue which I couldn't figure out if it was user error (by me), an issue in the autogen repo, or an actual bug so I hesitated to report it further.
But I noticed in the autogen-core pyproject.toml the version is specified as 0.4.0dev0, and when I try to install that package alone it works. However, when I try to install one of its dependencies like autogen-ext or autogen-autochat, the failure appears to be because the uv resolver is trying to find autogen-core 0.4.0.dev0 - note the extra period before dev0.
Again, not sure if this is a uv bug or just I am doing it wrong, but it was odd that the version string was not matching up which appears to be causing this error.
Assigning to @konstin.
Here is an example:
as I had the same issue while trying to load an un-published package from Git:
(note that you'll need to run
GIT_LFS_SKIP_SMUDGE=1 uv sync --verbose
to reproduce, as there's a different and unrelated error about LFS when uv tries to use git to check the repo out, but that's an issue for another ticket)Originally posted by @jasongill in https://github.com/astral-sh/uv/issues/6041#issuecomment-2402555793