-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv pip install inconsistent failure on Windows #1491
Comments
I did a test on my windows pc and debian on a VM, and did experiment the same results as the issue. "distributions=2.2.1" | save requirements.txt
uv venv
uv pip install -r requirements.txt gives error: Failed to download and build: distributions==2.2.1
Caused by: Failed to build: distributions==2.2.1
Caused by: Build backend failed to determine metadata through `prepare_metadata_for_build_wheel`:
--- stdout:
--- stderr:
<string>:177: SyntaxWarning: invalid escape sequence '\S'
Traceback (most recent call last):
File "<string>", line 10, in <module>
File "C:\Users\aucac\AppData\Local\Temp\.tmpn2KafH\.venv\Lib\site-packages\setuptools\build_meta.py", line 366, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\aucac\AppData\Local\Temp\.tmpn2KafH\.venv\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\aucac\AppData\Local\Temp\.tmpn2KafH\.venv\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 31, in <module>
ModuleNotFoundError: No module named 'numpy'
--- and in Debian is the same (give or take the paths and other stuff). Then I compared with pip Collecting distributions==2.2.1 (from -r requirements.txt (line 1))
Downloading distributions-2.2.1.tar.gz (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 6.1 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
<string>:177: SyntaxWarning: invalid escape sequence '\S'
Traceback (most recent call last):
File "C:\Users\aucac\scoop\apps\python\current\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\aucac\scoop\apps\python\current\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\aucac\scoop\apps\python\current\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\aucac\AppData\Local\Temp\pip-build-env-z4nk3ptj\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\aucac\AppData\Local\Temp\pip-build-env-z4nk3ptj\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\aucac\AppData\Local\Temp\pip-build-env-z4nk3ptj\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\aucac\AppData\Local\Temp\pip-build-env-z4nk3ptj\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 31, in <module>
ModuleNotFoundError: No module named 'numpy'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip And have around the same result. |
That appears to be a different error. This isn't about the particular package Just tried using a requirements file off the shelf: https://github.com/google-research/kubric/blob/main/requirements.txt I've added the full log including retries this time, showing how it's not always the same package, and retries will eventually succeed. (Also generating 300+MB of trash in the leftover Subsequent installs are fine after the first install (and fast!), as everything is already in the cache. Contrasted with regular Python pip, which installs first try, with or without cache.
|
I see, thanks for the log! Again, I have a different output sadly 😢. I think I am doing something wrong too. In my case, it didn't found a compatible version of tensorflow. If you are interested, here I leave the details, but I think my case is unrelated to this issue. (.venv) PS C:\Users\aucac\repos\exp-python\uv> uv pip install -r .\requirements.txt
× No solution found when resolving dependencies:
╰─▶ Because only the following versions of tensorflow are available:
tensorflow<=2.5.3
tensorflow>=2.6.0,<=2.6.5
tensorflow>=2.7.0,<=2.7.4
tensorflow>=2.8.0,<=2.8.4
tensorflow>=2.9.0,<=2.9.3
tensorflow>=2.10.0,<=2.10.1
tensorflow>=2.11.0,<=2.11.1
tensorflow>=2.12.0,<=2.12.1
tensorflow>=2.13.0,<=2.13.1
tensorflow>=2.14.0,<=2.14.1
tensorflow>=2.15.0
and tensorflow==0.12.0 is unusable because no wheels are available with a matching Python ABI, we can conclude that any of:
tensorflow<0.12.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==0.12.1 is unusable because no wheels are available with a matching Python ABI, we can conclude that any of:
tensorflow<1.0.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.0.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.0.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.1.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.1.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.2.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.2.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.2.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.3.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.4.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.4.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.4.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.5.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.5.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.5.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.6.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.6.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.7.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.7.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.7.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.8.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.9.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.9.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.10.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.10.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.10.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.11.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.12.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.12.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.12.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.12.3
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.12.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.13.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.13.2
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.13.2 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.14.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.15.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.15.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.15.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.15.3
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.15.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==1.15.4 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<1.15.5
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==1.15.5 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.0.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.0.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.0.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.0.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.0.3
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.0.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.0.4 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.1.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.1.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.1.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.1.2
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.1.2 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.1.3 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.1.4
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.1.4 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.2.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.2.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.2.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.2.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.2.3
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.2.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.3.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.3.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.3.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.3.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.3.3
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.3.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.3.4 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.4.0
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.4.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.4.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.4.2
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.4.2 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.4.3 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.4.4
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.4.4 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.5.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.5.1
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.5.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.5.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.5.3
tensorflow>2.5.3,<2.6.0
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.5.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.6.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.6.1
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.6.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.6.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.6.3
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.6.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.6.4 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.6.5
tensorflow>2.6.5,<2.7.0
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.6.5 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.7.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.7.1
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.7.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.7.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.7.3
tensorflow>2.7.4,<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.7.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.7.4 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.8.0
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.8.0 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.8.1 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.8.2
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.8.2 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.8.3 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.8.4
tensorflow>2.8.4,<2.9.0
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.8.4 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.9.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.9.1
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.9.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.9.2 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.9.3
tensorflow>2.9.3,<2.10.0
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.9.3 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.10.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.10.1
tensorflow>2.10.1,<2.11.0
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.10.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.11.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.11.1
tensorflow>2.11.1,<2.12.0
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.11.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.12.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.12.1
tensorflow>2.12.1,<2.13.0
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.12.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.13.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.13.1
tensorflow>2.13.1,<2.14.0
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.13.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.14.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that any of:
tensorflow<2.14.1
tensorflow>2.14.1,<2.15.0
cannot be used.
And because tensorflow==2.14.1 is unusable because no wheels are available with a matching Python ABI and tensorflow==2.15.0 is unusable because no wheels are available with a
matching Python ABI, we can conclude that tensorflow<2.15.0.post1 cannot be used.
And because tensorflow==2.15.0.post1 is unusable because no wheels are available with a matching Python ABI and you require tensorflow, we can conclude that the requirements are
unsatisfiable.
hint: Pre-releases are available for tensorflow in the requested range (e.g., 2.15.0rc1), but pre-releases weren't enabled (try: `--prerelease=allow`) If somebody wants me to try something, just tell! 😄 |
Just to add some more context to this, I get the same error and it will fail on different packages on each attempt if running uv clean in between
I suspect something in the temp file naming is randomly causing issues and after I tried 5 times with "uv clean" in-between it finished but it is happening frequently enough that there is a real issue. I am using the latest uv release 0.15 at the time of posting this issue |
For many packages I can just run uv pip install [package] again without using "uv clean" and it will work without the "os error 5" but with numpy 1.26.4 it triggers every time and I tried it 15 times in a row |
I think this is an error when attempting to persist the unzipped wheel to the wheel cache? |
The contents of the temp folder in $UV_CACHE_DIR are unzipped after the install fails but not sure if the process is asking the os to move the contents before the temp folder is created |
The overall approach is: unzip into a temporary folder, then move that folder into the cache to persist it. (This avoids persisting incomplete downloads that may error partway through.) |
I think this issue may crop up in corporate or more secure environments that have some layer of security running over all processes. I think there is a slight lag between when uv unzips the files where that process is ran in a sandbox and there is a slight delay before the os will allow access to the resulting folder while its scanned, I think simply catching the "os error" and retrying with some timeout would prevent this error on systems that have some security layer that temporarily effects permissions and also why a package like numpy (big and many small files) would consistently trip and medium packages would occasionally go through and occasionally trip. i.e. you may not be able to re-produce this error in dev without setting up a test box that use one of these paid corporate security software to trigger it. You generally only create windows binaries on tagged releases, if you can create a dev build binary I can test it on my system |
Ah, this is consistent with the experience in the first post. |
@Wofiel Our issue may be too niche to get traction (which I don't disagree with at this stage of uv) time to learn rust and attempt a PR |
This is also consistent with my experience. FWIW, the versions that it tripped up on were |
I hit this same error today. trying to run:
on windows. I keep hitting
The package that causes the error seems to be random if I re-run the command. |
Is anyone of you able to share (here or in private to [email protected]) what kind of security software or special windows settings you are running, so we can reproduce the failures you are experiencing? |
I don't think there is anything special on my setup.
|
Is it possible that the use of the UNC prefix is itself the problem? If I created a branch that omitted them, would anyone here be willing to |
I could try it in the week - but don't have the tooling set up at the moment. |
Do you mean this: |
Yeah, that prefix on the file paths. |
I don't know enough to help - but I definitely can't cd into "\?\C:" using powershell or bash in powershel:
|
Just curious -- what if you take the output of |
Either way I'll put together a branch to remove these. |
The \\?\ prefix is just a way around the MAX_PATH (256 char) limitation in Windows API calls. I'd personally be surprised if it had an impact although I couldn't say for sure. Having dealt with similar issues in other projects where Windows antivirus software is holding file locks after any file system operations, the best solution is usually just to retry the operation on failure a handful of times with a slightly increasing sleep in between attempts unfortunately. |
That's interesting - though retrying multiple times sort of defeats the purpose of UV being so fast. I wonder why pip success but UV fails. (Note we do use an antivirus) |
I think the effect on speed would be imperceptible to the end user. The uv speed up is more to do with dependency resolution and retrying is to deal with likely milliseconds of time that a security layer on Windows locks access to the extracted zip contents before uv can read and copy the data from the tmp folder to the archive |
Oh, yes, happy if this is handled by uv I just don't want to write a bash script on my end to retry the installation till it works |
Definitely want to fix this. |
The merged PR #2419 has thus far eliminated failures on the handful pip installs I've done since upgrading. Thanks @charliermarsh |
Not sure - I hit this error just now trying to upgrade to uv==0.1.21 (I'm on 0.1.20) (Running on gitbash on a windows machine) Running |
Hi, I observed exactly this issue "Caused by: Failed to fetch wheel..." The problem randomly appears on two different machines. One is running windows directly - and the other is using WSL with a windows mount. So far, the issue disappared after trying it another time. |
Ran into this issue with uv == 0.2.11, Python 3.12 and Windows 11 Pro. No specific enterprise extensions installed to Windows but we do have McAfee Antivirus installed. |
Hi, the latest version ( The common denominator seems to be source distributions which Hypothesis: snakeoil scanners need more time to scan compressed archives (because of the decompression step) and A few source distribution only packages: A bunch of error messages for these packages$ .\hatch.exe run all.py$INTERPRETER_VERSION`:cov
Creating environment: all.py3.11
Installing project
error: Failed to download and build `pywinusb==0.4.2`
Caused by: Failed to write to the distribution cache
Caused by: failed to rename file from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmp3V6aqK\built-wheels-v3\.tmpsxHt5d\pywinusb-0.4.2 to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmp3V6aqK\built-wheels-v3\index\70e6dbc41e17fe7c\pywinusb\0.4.2\w4S16F7Zw7fjYe2QmhqM_\pywinusb-0.4.2.zip
Caused by: Access is denied. (os error 5)
$ .\hatch.exe run all.py$INTERPRETER_VERSION`:cov
Creating environment: all.py3.9
Installing Python distribution: 3.9
Installing project
Checking dependencies
Syncing dependencies
error: Failed to download and build `odfpy==1.4.1`
Caused by: Failed to write to the distribution cache
Caused by: failed to rename file from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmp30woUu\built-wheels-v3\.tmp7d4zhJ\odfpy-1.4.1 to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmp30woUu\built-wheels-v3\index\70e6dbc41e17fe7c\odfpy\1.4.1\J27cgvxiwwWDBSM2Tnauu\odfpy-1.4.1.tar.gz
Caused by: Access is denied. (os error 5)
$ hatch run uv --version
Creating environment: default
Installing Python distribution: 3.11
Installing project in development mode
Checking dependencies
Syncing dependencies
error: Failed to download and build `mapdata==3.11.1`
Caused by: Failed to write to the distribution cache
Caused by: failed to rename file from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmptBDtnM\built-wheels-v3\.tmpqFOiKl\mapdata-3.11.1 to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmptBDtnM\built-wheels-v3\index\70e6dbc41e17fe7c\mapdata\3.11.1\T7WG4FPsti03XVV0KCULn\mapdata-3.11.1.tar.gz
Caused by: Access is denied. (os error 5)
$ hatch run uv --version
Creating environment: default
Installing Python distribution: 3.11
Installing project in development mode
Checking dependencies
Syncing dependencies
error: Failed to download and build `fire==0.6.0`
Caused by: Failed to write to the distribution cache
Caused by: failed to rename file from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpVXpz23\built-wheels-v3\.tmpnCevMt\fire-0.6.0 to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpVXpz23\built-wheels-v3\index\70e6dbc41e17fe7c\fire\0.6.0\pD3XrlBXA8_x3S3TYSW2o\fire-0.6.0.tar.gz
Caused by: Access is denied. (os error 5) |
Never saw this kind of responsiveness in a project, respect! 🥇 |
@axel-kah With We have a maximum backoff of 10s which is pretty long. Do you think we should be waiting longer than that? |
@zanieb I modified the hatch script to install source-only packages with the latest verbose output$ hatch run provoke-issue
Creating environment: default
Installing project in development mode
Checking dependencies
Syncing dependencies
cmd [1] | D:\glb\GwsU8_zK\0\uv.exe --version
uv 0.2.15 (bfc342da9 2024-06-24)
cmd [2] | D:\glb\GwsU8_zK\0\uv.exe --verbose pip install fire pywinusb nptdms odfpy ipyvuetable
DEBUG uv 0.2.15
DEBUG Searching for Python interpreter in system toolchains
DEBUG Found cpython 3.11.9 at `d:\glb\GwsU8_zK\0\.hatch_data\env\virtual\foo\Scripts\python.exe` (active virtual environment)
DEBUG Using Python 3.11.9 environment at .hatch_data\env\virtual\foo\Scripts\python.exe
DEBUG Acquired lock for `.hatch_data\env\virtual\foo`
DEBUG At least one requirement is not satisfied: ipyvuetable
DEBUG Using request timeout of 30s
DEBUG Solving with installed Python version: 3.11.9
DEBUG Adding direct dependency: fire*
DEBUG Adding direct dependency: pywinusb*
DEBUG Adding direct dependency: nptdms*
DEBUG Adding direct dependency: odfpy*
DEBUG Adding direct dependency: ipyvuetable*
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/simple/fire/
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/simple/pywinusb/
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/simple/nptdms/
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/simple/odfpy/
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/simple/ipyvuetable/
DEBUG Acquired lock for `\\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\index\70e6dbc41e17fe7c\pywinusb\0.4.2`
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/packages/packages/38/b4/ecce4a3a0dac3b1bf5776943530cf4f36406fc9b3f4f3c31c8dcab2249eb/pywinusb-0.4.2.zip#sha256=e2f5e89f7b74239ca4843721a9bda0fc99014750630c189a176ec0e1b35e86df
DEBUG Acquired lock for `\\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\index\70e6dbc41e17fe7c\odfpy\1.4.1`
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/packages/packages/97/73/8ade73f6749177003f7ce3304f524774adda96e6aaab30ea79fd8fda7934/odfpy-1.4.1.tar.gz#sha256=db766a6e59c5103212f3cc92ec8dd50a0f3a02790233ed0b52148b70d3c438ec
DEBUG Searching for a compatible version of fire (*)
DEBUG Selecting: fire==0.6.0 (fire-0.6.0.tar.gz)
DEBUG Acquired lock for `\\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\index\70e6dbc41e17fe7c\fire\0.6.0`
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/packages/packages/1b/1b/84c63f592ecdfbb3d77d22a8d93c9b92791e4fa35677ad71a7d6449100f8/fire-0.6.0.tar.gz#sha256=54ec5b996ecdd3c0309c800324a0703d6da512241bc73b553db959d98de0aa66
DEBUG Acquired lock for `\\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\index\70e6dbc41e17fe7c\nptdms\1.9.0`
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/packages/packages/ff/05/8f560020155c1843d664248fb114e33eac0c1b3ad44fce6bfc2b5dd143c2/npTDMS-1.9.0.tar.gz#sha256=0e65c237e9d50b9b8e162b9c34171353a5ea05f4019c99c3e8ebc00722361cbc
DEBUG Downloading source distribution: odfpy==1.4.1
DEBUG Downloading source distribution: fire==0.6.0
DEBUG Downloading source distribution: nptdms==1.9.0
DEBUG Acquired lock for `\\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\index\70e6dbc41e17fe7c\ipyvuetable\0.4.0`
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/packages/packages/7f/dc/aeb142c5ab3563a8600c8d2409212d9ff7f869ff87adea1e1de252032f08/ipyvuetable-0.4.0.tar.gz#sha256=d88e4d87be451b3813e18a999bd3bb5800db38ba59c612e943029fd0804482e2
DEBUG Downloading source distribution: ipyvuetable==0.4.0
DEBUG Downloading source distribution: pywinusb==0.4.2
DEBUG Preparing metadata for: ipyvuetable==0.4.0
DEBUG No static `PKG-INFO` available for: ipyvuetable==0.4.0 (PkgInfo(UnsupportedMetadataVersion("2.1")))
DEBUG No static `pyproject.toml` available for: ipyvuetable==0.4.0 (MissingPyprojectToml)
INFO Ignoring empty directory
DEBUG Solving with installed Python version: 3.11.9
DEBUG Adding direct dependency: setuptools>=40.8.0
DEBUG No cache entry for: https://artifactory.acme.com/artifactory/api/pypi/pypi-acme-vir/simple/setuptools/
DEBUG Preparing metadata for: fire==0.6.0
DEBUG No static `PKG-INFO` available for: fire==0.6.0 (PkgInfo(UnsupportedMetadataVersion("2.1")))
DEBUG No static `pyproject.toml` available for: fire==0.6.0 (MissingPyprojectToml)
INFO Ignoring empty directory
DEBUG Preparing metadata for: nptdms==1.9.0
DEBUG No static `PKG-INFO` available for: nptdms==1.9.0 (PkgInfo(UnsupportedMetadataVersion("2.1")))
DEBUG No static `pyproject.toml` available for: nptdms==1.9.0 (PyprojectToml(FieldNotFound("project")))
INFO Ignoring empty directory
DEBUG Solving with installed Python version: 3.11.9
DEBUG Adding direct dependency: setuptools*
error: Failed to download and build `pywinusb==0.4.2`
Caused by: Failed to write to the distribution cache
Caused by: failed to rename file from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\.tmpc3E2Z7\pywinusb-0.4.2 to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpanLS7H\built-wheels-v3\index\70e6dbc41e17fe7c\pywinusb\0.4.2\or1SrhePMDCdKnzdyzMki\pywinusb-0.4.2.zip
Caused by: Access is denied. (os error 5) I also set EDIT: same is true for |
Thanks for the details! I'll investigate. |
#2419 appears to have only applied this retry to wheels that were already downloaded (though I would have to look more carefully to be certain). In #1491, we've gotten continued reports of spurious failures on Windows and tracing reveals that we are not applying our retry logic during the rename. I believe we're in this code path — switching to our backoff retry should resolve the failures.
Just want to share that we still see these failures quite regularly as of
|
I wonder in this case if the back off procedure is being used in the case where a temp build environment is being created to build a wheel for a package in isolation. This seems like in the case where an isolated build is needed the back off approach is not being used. I have on different issue related to the temp build directory tries to run executables where IT blocks any user executable not under "Program Files", and I couldn't figure out how to override the location were the temp build environment is created (still haven't figured it out) But that issue gave me insight into what may be going on here which may be a control flow were the back off is not being applied when trying to copy the compressed package to the archive |
I recorded a failure through Process Monitor in case any of that information is useful here. I can't share it directly (because it came from a corporate environment), but I can redact and provide pieces. Just noting in case this for whatever reason cannot be replicated by the codeowners. One item of note is that I don't think I see a retry? All I can find is a single
The command run to generate above was Our CI runs with |
Yeah my guess is we're missing it somewhere but not sure where... I think @zanieb is planning to take a second look. |
Looks like @zanieb already pushed a PR and may have found a fix, but should it be useful, here's the IO activity of the thread from #1491 (comment)
|
Ok more fixes coming in the next release. |
I stress-tested WARN Retrying rename from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpTFyAcI\built-wheels-v3\.tmpFqzuFu\pywinusb-0.4.2
to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpTFyAcI\built-wheels-v3\index\70e6dbc41e17fe7c\pywinusb\0.4.2\seIYCJmH_UpZwtxYdRGAe\pywinusb-0.4.2.zip due to transient error:
failed to rename file from \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpTFyAcI\built-wheels-v3\.tmpFqzuFu\pywinusb-0.4.2
to \\?\C:\Users\gitlabwinrunner\AppData\Local\Temp\.tmpTFyAcI\built-wheels-v3\index\70e6dbc41e17fe7c\pywinusb\0.4.2\seIYCJmH_UpZwtxYdRGAe\pywinusb-0.4.2.zip 🎉 |
Wonderful! Thanks for following up <3 |
Clearly separate from the root cause here but since it's mentioned here:
@charliermarsh are you still open to this change? We're hitting this problem with |
Do you mind opening a separate issue with more details? That sounds like a bug (as opposed to a spurious failure).On Jul 24, 2024, at 7:46 AM, Pavel Dikov ***@***.***> wrote:
Clearly separate from the root cause here but since it's mentioned here:
I'm open to changing to use the dunce-canonicalized version everywhere, but note that it doesn't, like, fully solve the problem (if it is a problem). dunce will still return a UNC prefix if the path is longer than 260 characters.
@charliermarsh are you still open to this change? We're hitting this problem with pyvenv.cfg (the home path in particular) -- importing dynamic libraries from UNC-prefixed paths fails miserably for at least some Python versions. Happy to open another issue.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
There is no doubt that this is a problem caused by hard links, and pnpm often has various problems |
When using
uv pip install -r requirements.txt
, I will frequently get the following error:This appears to be independent of the package, though seemingly happens more often with some than others.
If run with
--no-cache
, it's almost impossible to install, as at least one thing is likely to fail in the process and progress restarted.If run without
--no-cache
, retrying a number of times will eventually succeed (however, it will leave.tmp[_______]
folders listed in the error messages inC:\Users\[____]\AppData\Local\uv\cache
).The text was updated successfully, but these errors were encountered: