zzw922cn / Automatic_Speech_Recognition

End-to-end Automatic Speech Recognition for Madarian and English in Tensorflow
MIT License
2.84k stars 538 forks source link

No module named utils #17

Open saurabhvyas opened 7 years ago

saurabhvyas commented 7 years ago

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$ 
TerminalWitchcraft commented 7 years ago

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

saurabhvyas commented 7 years ago

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

zzw922cn commented 7 years ago

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

saurabhvyas commented 7 years ago

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