Automatic_Speech_Recognition icon indicating copy to clipboard operation
Automatic_Speech_Recognition copied to clipboard

No module named utils

Open saurabhvyas opened this issue 7 years ago • 4 comments

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$ 

saurabhvyas avatar Jun 05 '17 11:06 saurabhvyas

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

TerminalWitchcraft avatar Jun 06 '17 12:06 TerminalWitchcraft

Yes, I cloned latest master branch , I recloned and followed the steps and I get the same error

saurabhvyas avatar Jun 06 '17 18:06 saurabhvyas

@saurabhvyas Utils is a directory, have you fixed this error?

zzw922cn avatar Jun 07 '17 06:06 zzw922cn

No , not been able to fix it . If you could tell me steps I could follow that would be really nice

saurabhvyas avatar Jun 07 '17 09:06 saurabhvyas