NervanaSystems / deepspeech

DeepSpeech neon implementation
Apache License 2.0
222 stars 69 forks source link

Wrong arguments error in utils.py #41

Closed w4-kang closed 7 years ago

w4-kang commented 7 years ago

Hi, I got Error "TypeError: write() argument must be str, not bytes" in utils.py I'm not familiar with python, but I guess it could be python2 and 3 compatible problem. (I run evaluate.py with python 3.6.1 (anaconda)) Above error comes from utils.py > get_wer(...) > sys.stdout.write(progress_string.encode("utf-8")) [line 78]. When I modify progress_string.encode("utf-8") to just progress_string, it works well (but I couldn't test it with python 2 because my environment allows python3 only.)

tyler-nervana commented 7 years ago

Thanks for notifying us on this. You're right that this is a python 3 issue.