zzw922cn / Automatic_Speech_Recognition

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

Import Error #67

Open donotdonuts opened 6 years ago

donotdonuts commented 6 years ago

Hi,

I am trying to get data pre processed by using timit_preprocess.py code: python3 timit_preprocess.py. However, it gives error like

  1. ImportError: No module named 'version' which I can find version.py under folder python3.5/site-packages/scikits/audiolab by simply change verison='0.11.0' in the _init_py under folder python3.5/site-packages/scikits/audiolab, it can solve the error.

  2. from pysndfile import formatinfo, sndfile ImportError: cannot import name 'formatinfo' I can't find any "formatinfo" under folder python3.5/site-packages/scikits/audiolab/pysndfile

3.from pysndfile import sndfile ImportError: cannot import name 'sndfile' I am able to find the file sndfile.py under python3.5/site-packages/scikits/audiolab/pysndfile but it still throws the error.

my pysndfile is the newest version 1.1.0.

Would anyone advise how to solve this. I have tried many ways and change the environment and errors are still happening. please help me!

thanks Leon

yuyq96 commented 6 years ago

met the same problem, since scikits.audiolab only supports python2. ImportError: No module named 'version'

zzw922cn commented 6 years ago

@donotdonuts @archie-yu I am sorry recently too busy to reply you asap, I have updated the code of timit preprocessing, we can use another tool to convert NIST to WAV instead of audiolab in python3.5. Best wishes!