Open axel-kah opened 2 days ago
At an off chance I re-did all experiments using --index-url https://pypi.org/simple
- and everything fell into place 😬
using py311
uv tries to build tables
from source. adding --only-binary :all:
returns a no-solution message (again not indicating the interpreter mismatch).
using py37 uv installs the package without problems.
The root cause seems like a problem with your registry. Candidly it'll be hard to debug without having direct access to it, but I can look into the codepaths and see if we need to be adding more fallback somewhere.
Hm, troubleshooting artifactory, I was afraid you would say that. Well, would it help you if I could acquire a logfile from our admin for one of these attempts which error out with BufError
?
Would it be feasible to expose an environment variable which forces the fallback you have in mind? I'm just thinking out loud here. Should the investigation show that Jfrog needs to ship a bugfix, then Artifactory users could at least use uv with suboptimal performance instead of falling back to the tools it replaces.
When using latest
uv
(0.2.18 (13b0beb56 2024-06-29)
)on windows with an Artifactory mirror (Enterprise Plus 7.63.14 rev
) and with a newer interpreter (3.11
) than the package version supports you currently either get aBuffError
when trying to fetch an odd looking macos package for some reason, or when forcing the use of wheels, a correct error message which could be improved by stating the reason no usable wheels could be found (interpeter version mismatch).❯ source .venv311/Scripts/activate
❯ uv pip install --verbose tables==3.4.4 error: Failed to download
tables==3.4.4
Caused by: Failed to unzip wheel: tables-3.4.4-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Caused by: an upstream reader returned an error: unexpected BufError Caused by: unexpected BufError❯ uv pip install --verbose tables==3.4.4 --only-binary :all: × No solution found when resolving dependencies: ╰─▶ Because tables==3.4.4 has no usable wheels and building from source is disabled and you require tables==3.4.4, we can conclude that the requirements are unsatisfiable.
When I use a matching interpreter version (
3.7
), it fails to install a transient dependency (numpy
), always with aBufError
.❯ source .venv37/Scripts/activate
❯ uv pip install --verbose tables==3.4.4 error: Failed to download
numpy==1.18.0
Caused by: Failed to unzip wheel: numpy-1.18.0-cp37-cp37m-win_amd64.whl Caused by: an upstream reader returned an error: unexpected BufError Caused by: unexpected BufError❯ uv pip install --verbose tables==3.4.4 --only-binary :all: error: Failed to download
numpy==1.18.0
Caused by: Failed to unzip wheel: numpy-1.18.0-cp37-cp37m-win_amd64.whl Caused by: an upstream reader returned an error: unexpected BufError Caused by: unexpected BufErrorEDIT: re-arranged the code snippets