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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyInstaller and torchaudio leads to RuntimeError on Windows #2470
Comments
Hi @Aztorius I have never used PyInstaller, but I think it's related to the fact that C++ libraries is not packaged properly. I think you need something similar to https://stackoverflow.com/a/47528057 |
I'm running some tests. The folder
Those dlls are inside |
There are couple of conflicting observations I am making;
In your PIP installation, what would happen if you try |
Ok, so let me recap.
After using pyinstaller :
I suppose that I am missing the torchaudio/lib/libtorchaudio.pyd. I will try to include it with a hook. |
Ok, just tried to manually copy the missing |
One working solution is to add |
Grad that it helps. |
馃悰 Describe the bug
When running this sample on Windows :
It doesn't work on Windows after PyInstaller.
The error is :
Maybe PyInstaller execute the torchaudio decorator
@_mod_utils.requires_sox()
.This obviously causes a crash on Windows because of the missing sox backend.
Before using PyInstaller (by running the .py file directly) it works without any issue.
Versions
Collecting environment information...
PyTorch version: 1.11.0+cpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 10 Professionnel
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A
Python version: 3.9.12 (tags/v3.9.12:b28265d, Mar 23 2022, 23:52:46) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19044-SP0
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.22.1
[pip3] torch==1.11.0
[pip3] torchaudio==0.11.0
[conda] Could not collect
The text was updated successfully, but these errors were encountered: