Hi All,
While running deepspeech.py I am getting this No module named ‘deepspeech_training’ error.
Recently the path to deepspeech_training has been changed to training/deepspeech_training so,I think we have to make change in the deepspeech.py file also??
from training.deepspeech_training import train as ds_train
Please look at how you are calling the DeepSpeech.py
script. If you do that in deepspeech_training you should be fine. But I guess you are calling it from somewhere else?
If you need more help, post more info.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
3
Have you read the documentation and performed pip install -e . step ?
Hi, facing the same issue.
I followed the training doc and redid the installation multiple times and still facing the same issue.
Please guide me through the ‘pip install -e’ step, you have mentioned because i couldn’t find it in the training docs.
here is the error, i received. I am doing the training on google colab, so I haven’t created a virtual env.
/content/drive/My Drive/transfer learning/deepspeech
Training package is not installed. See training documentation.
Traceback (most recent call last):
File “DeepSpeech.py”, line 7, in
from deepspeech_training import train as ds_train
ModuleNotFoundError: No module named ‘deepspeech_training’
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
7
Ran into this issue trying today, with the latest git version, also tried with a checkout of tags/v0.7.4 with the same result.
i’m at the top level of the project and calling ./bin/run-ldc93s1.sh and it says it cannot find deepspeech_training.
Have created a venv of python 3.6, activated the venv and have installed a new pip, wheel and setup-tools, as well as tensorflow-gpu and deepspeech-gpu.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
14
Thanks, that’s exactly what I followed. i didn’t install deepspeech-gpu initially, but once it failed i tried it just in case it helped (which it didn’t). I’m now seeing that even running ./DeepSpeech gives the same error, at the top level.
Training package is not installed. See training documentation.
Traceback (most recent call last):
File "./DeepSpeech.py", line 7, in <module>
from deepspeech_training import train as ds_train
ModuleNotFoundError: No module named 'deepspeech_training'
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
16
Well, you did not mentionned it in your previous message:
Have created a venv of python 3.6, activated the venv and have installed a new pip, wheel and setup-tools, as well as tensorflow-gpu and deepspeech-gpu.
Are you sure that pip3 install --upgrade -e . completed successfully? Are you sure there is no mixup of python version here?
You’re right, I didn’t use the -e step, it pulled in a bunch of new dependencies, that’s interesting! I was looking for a requirements file to see how to pull in requirements but i couldn’t find it, and I see that -e must be doing something like that. my mistake.
i’ve got another error now,
> File “/home/foo/Projects/DeepSpeech/venv/lib/python3.6/site-packages/ds_ctcdecoder/init.py”, line 42, in init
> raise ValueError(‘Scorer initialization failed with error code {}’.format(err))
> ValueError: Scorer initialization failed with error code 8198
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
18
Yes, we moved away from requirements.txt, dependencies are expressed in setup.py because it allows more flexibility as well.
Often a case of improper checkout because of missing git-lfs