0
torch cpu gets installed although torchcuda was installed successfully and could be imported
What happened?
The torch installation fails.
torch cuda fails, then it tries to install torch for cpu.
The problem is, that torch actually was installed correctly. The way torch.js tries to import torch fails and so torch.js "thinks" it couldn't be imported.
A user reported this and I want to forward it to you.
Steps to reproduce
- install transcribix from scratch
Your system (OS / GPU / RAM / VRAM / etc.)
OS: Windows 10
GPU: RTX 4070
RAM: 64 GB
Logs / full error output
Microsoft Windows [Versión 10.0.19045.6466]
(c) Microsoft Corporation. Todos los derechos reservados.
D:\pinokio\api\Transcribix-Pinokio.git>conda_hook & conda deactivate & conda deactivate & conda deactivate & conda activate base & D:\pinokio\api\Transcribix-Pinokio.git\venvs\whisper\Scripts\activate D:\pinokio\api\Transcribix-Pinokio.git\venvs\whisper && uv pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121
Using Python 3.10.20 environment at: venvs\whisper
Checked 2 packages in 4ms
(whisper) (base) D:\pinokio\api\Transcribix-Pinokio.git>
Microsoft Windows [Versión 10.0.19045.6466]
(c) Microsoft Corporation. Todos los derechos reservados.
D:\pinokio\api\Transcribix-Pinokio.git>conda_hook & conda deactivate & conda deactivate & conda deactivate & conda activate base & D:\pinokio\api\Transcribix-Pinokio.git\venvs\whisper\Scripts\activate D:\pinokio\api\Transcribix-Pinokio.git\venvs\whisper && python -c "import torch" 2>/dev/null || echo TORCH_IMPORT_FAILED
El sistema no puede encontrar la ruta especificada.
TORCH_IMPORT_FAILED
(whisper) (base) D:\pinokio\api\Transcribix-Pinokio.git>
Microsoft Windows [Versión 10.0.19045.6466]
(c) Microsoft Corporation. Todos los derechos reservados.
D:\pinokio\api\Transcribix-Pinokio.git>conda_hook & conda deactivate & conda deactivate & conda deactivate & conda activate base & D:\pinokio\api\Transcribix-Pinokio.git\venvs\whisper\Scripts\activate D:\pinokio\api\Transcribix-Pinokio.git\venvs\whisper && uv pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
Using Python 3.10.20 environment at: venvs\whisper
Checked 2 packages in 4ms
(whisper) (base) D:\pinokio\api\Transcribix-Pinokio.git>
I tested your script manually and figured out the problem. It's this part 2>/dev/null which makes it fail.
The following code shows it. (A new line means, the import worked)
- Your command (throws an error)
- Only import torch (gives a new line = worked)
- Your command without echo (throws an error)
- Your command with echo but without
2>/dev/null(gives a new line = worked)
random code
Replies (0)
Up to 10 files, 25MB each. Images are optimized; GIFs -> MP4; videos 720p (max 120s).
