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.)
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 modifyprogress_string.encode("utf-8")
to justprogress_string
, it works well (but I couldn't test it with python 2 because my environment allows python3 only.)