Automatic_Speech_Recognition
Automatic_Speech_Recognition copied to clipboard
No module named utils
O running run_timit.sh I am getting following error
saurabh@saurabh-Inspiron-5559:~/saurabh/asr_new/main$ sudo pip install utilsThe directory '/home/saurabh/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/saurabh/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: utils in /usr/local/lib/python2.7/dist-packages
saurabh@saurabh-Inspiron-5559:~/saurabh/asr_new/main$ ./run_timit.sh
loop index: 2
Traceback (most recent call last):
File "timit_train.py", line 27, in <module>
from utils.utils import load_batched_data
ImportError: No module named utils
saurabh@saurabh-Inspiron-5559:~/saurabh/asr_new/main$
Hi @saurabhvyas , utils is not a package which you have to install via pip. It is supplied with this repository. Are you using the latest version of the code from the master branch? As this error should not exist as we have added this line to the code in timit_train.py:
sys.path.append('../')
Best, Hitesh
Yes, I cloned latest master branch , I recloned and followed the steps and I get the same error
@saurabhvyas Utils is a directory, have you fixed this error?
No , not been able to fix it . If you could tell me steps I could follow that would be really nice