Open rsxdalv opened 3 weeks ago
Hi! Thanks for all the details. Did you read the local version identifier section of the pip compatibility guide?
Thank you, I saw some potential causes for this, it seems like it spiraled downwards towards an older version, and I suppose I can try to add an extra constraint on the version and fix everything that way.
On the topic of pip compatibility, it seems that pip is capable of installing packages while there's an app running while uv seems to fail, is this to be expected?
error: failed to remove file .\env\Lib\site-packages\PIL/_imaging.cp310-win_amd64.pyd
Caused by: Access is denied. (os error 5)
For context, I have a python app with extensions system and they currently are being installed while the app itself is running.
There's an issue for the pyd file behavior on Windows https://github.com/astral-sh/uv/issues/7918 — installation should be fine but that suggests that there's an uninstall happening?
Here's another issue with context on selection of old versions when there aren't constraints https://github.com/astral-sh/uv/issues/4372
There's an issue for the pyd file behavior on Windows #7918 — installation should be fine but that suggests that there's an uninstall happening?
Here's another issue with context on selection of old versions when there aren't constraints #4372
Thanks! Yes, exactly, it seems that the problems begin when an extension causes a reinstall, i.e., PIL > 9 is ok with the app but the extension demands PIL > 10 so we get a reinstall.
Hi! Thanks for all the details. Did you read the local version identifier section of the pip compatibility guide?
I wanted to add a user story in regards to this:
uv pip install --dry-run torch==2.3.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
× No solution found when resolving dependencies:
╰─▶ Because there is no version of torch==2.3.0 and you require torch==2.3.0, we can conclude that your requirements
are unsatisfiable.
as an end user, I don't know exactly what is the +
Also great job on uv
dry run installs, when trying it with pip I had this:
(C:\Users\admin\Desktop\one-click-installers-tts-main\tts-generation-webui\installer_files\env) C:\Users\admin\Desktop\one-click-installers-tts-main\tts-generation-webui>pip install --dry-run torch==2.3.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Looking in indexes: https://download.pytorch.org/whl/cu118
Collecting torch==2.3.0
Downloading https://download.pytorch.org/whl/cu118/torch-2.3.0%2Bcu118-cp310-cp310-win_amd64.whl (2673.0 MB)
━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.1/2.7 GB 40.9 MB/s eta 0:01:02
ERROR: Operation cancelled by user
(C:\Users\admin\Desktop\one-click-installers-tts-main\tts-generation-webui\installer_files\env) C:\Users\admin\Desktop\one-click-installers-tts-main\tts-generation-webui>pip install --dry-run torch==2.5.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Looking in indexes: https://download.pytorch.org/whl/cu118
Collecting torch==2.5.0
Downloading https://download.pytorch.org/whl/cu118/torch-2.5.0%2Bcu118-cp310-cp310-win_amd64.whl (2700.2 MB)
━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.1/2.7 GB 40.9 MB/s eta 0:01:04
ERROR: Operation cancelled by user
Thus I can testify that uv
is already a tool every python dev should have installed, because it's useful even when mixing with pip
.
uv: https://github.com/rsxdalv/tts-generation-webui/actions/runs/11224348164/job/31200883591 pip: https://github.com/rsxdalv/tts-generation-webui/actions/runs/11224124790/job/31200229110
context: Docker image:
nvidia/cuda:11.8.0-devel-ubuntu22.04
(Python 3.10.12, uv 0.4.18)uv pip install --no-cache-dir --system setuptools torch==$TORCH_VERSION torchvision torchaudio
pip3 install --no-cache-dir --upgrade pip==23.3.2 setuptools
breaking point:
uv pip install --no-cache-dir --system --verbose torch==$TORCH_VERSION -r requirements.txt
Requirements file:
Error:
https://github.com/rsxdalv/tts-generation-webui/actions/runs/11224348164/job/31200883591#step:6:8382
Full dockerfile: