An exception occurred when executing ./examples/test.py
System environment
Ubuntu 20.04 LTS
Python 3.10.14
numpy.version '1.26.4'
scipy.version '1.15.3'
sklearn.version '1.6.1'
matplotlib.version '3.10.3'
torchaudio.version '2.7.0+cu126'
libc++1 1:10.0-50~exp1
git clone https://huggingface.co/TEN-framework/ten-vad

python test.py s0724-s0730.wav out.txt
/home/kingman/vad/ten-vad/examples/test.py:15: WavFileWarning: Chunk (non-data) not understood, skipping it.
sr, data = Wavfile.read(input_file)
Traceback (most recent call last):
File "/home/kingman/vad/ten-vad/examples/test.py", line 18, in
ten_vad_instance = TenVad(hop_size, threshold) # Create a TenVad instance
File "/home/dfzb/anaconda3/envs/vad/lib/python3.10/site-packages/ten_vad.py", line 27, in init
self.vad_library = CDLL(
File "/home/dfzb/anaconda3/envs/vad/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: ../../../../dfzb/anaconda3/envs/vad/lib/python3.10/site-packages/./ten_vad_library/libten_vad.so: invalid ELF header
Exception ignored in: <function TenVad.__del__ at 0x7f210053c3a0>
Traceback (most recent call last):
File "/home/dfzb/anaconda3/envs/vad/lib/python3.10/site-packages/ten_vad.py", line 70, in del
self.vad_library.ten_vad_destroy(
AttributeError: 'TenVad' object has no attribute 'vad_library'
@Namgnik Could you run
ls -lh lib/Linux/x64/
?Thanks for your reply. I have been working on this project for two days. According to what you said, I checked that libten_vad.so does exist in the lib/Linux/x64 folder.
Could you paste the output of the command ls -lh lib/Linux/x64/
here? I'm wondering if the size is correct.
@Namgnik Could you run
ls -lh lib/Linux/x64/
?Thanks for your reply. I have been working on this project for two days. According to what you said, I checked that libten_vad.so does exist in the lib/Linux/x64 folder.
Could you paste the output of the command
ls -lh lib/Linux/x64/
here? I'm wondering if the size is correct.
@Namgnik Could you run
ls -lh lib/Linux/x64/
?Thanks for your reply. I have been working on this project for two days. According to what you said, I checked that libten_vad.so does exist in the lib/Linux/x64 folder.
Could you paste the output of the command
ls -lh lib/Linux/x64/
here? I'm wondering if the size is correct.
The size of the lib file seems to be not correct. You may need to run the command git lfs pull
to pull the lib file from the "Git Large File Storage".
@Namgnik Could you run
ls -lh lib/Linux/x64/
?Thanks for your reply. I have been working on this project for two days. According to what you said, I checked that libten_vad.so does exist in the lib/Linux/x64 folder.
Could you paste the output of the command
ls -lh lib/Linux/x64/
here? I'm wondering if the size is correct.The size of the lib file seems to be not correct. You may need to run the command
git lfs pull
to pull the lib file from the "Git Large File Storage".
Thank you very much. With your guidance, it can run correctly. Later, I found that there is also a same so file in the directory /home/kingman/anaconda3/envs/vad/lib/python3.10/site-packages/ten_vad_library. I copied a copy and it worked perfectly. Thank you again for your guidance : )