Black-Box-Audio icon indicating copy to clipboard operation
Black-Box-Audio copied to clipboard

ModuleNotFoundError: No module named 'util'

Open xinghua-qu opened this issue 3 years ago • 3 comments

For some reason, I met the error below. from util.audio import audiofile_to_input_vector ModuleNotFoundError: No module named 'util' Where is the util for importing? I did not find it

xinghua-qu avatar Jul 23 '21 08:07 xinghua-qu

@QuXinghuaNTU I got the same error but I cant remember exactly how I got past it. I am not by my desktop at the moment but I believe I fixed it by using 'pip3 install -r reqirements.txt' instead of 'pip install -r reqirements.txt' in a new virtual environment. It was either that or a change in the version of pandas or matplotlib. Run pip3 freeze and compare the output to my output in issue #15

StephenC808 avatar Jul 23 '21 09:07 StephenC808

Hi @QuXinghuaNTU,

Did you clone the right version of DeepSpeech (following instructions in the README)? The util comes from the DeepSpeech repo.

rtaori avatar Aug 11 '21 17:08 rtaori

For some reason, I met the error below. from util.audio import audiofile_to_input_vector ModuleNotFoundError: No module named 'util' Where is the util for importing? I did not find it

You should to clone DeepSpeech. git clone -b 'v0.1.1' --single-branch --depth 1 https://github.com/mozilla/DeepSpeech.git

suyufan avatar Apr 23 '22 15:04 suyufan