genki.py error and background dataset question
Hi
question one:
I run the genki.py , got the follow error:
python genki.py path/to/genki > trdata
Traceback (most recent call last):
File "genki.py", line 166, in
question two: I can not download the background dataset using the following link: https://googledrive.com/host/0Bw4IT5ZOzJj6NXlJUFh0UGZCWmc can you give me another link?
if you using python 2.7
replace
sys.stdout.buffer.write(hw)
to
sys.stdout.write(hw)
Also if you are on windows, you must add folowing code:
if sys.platform == "win32":
import os, msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
if sys.platform == "win64":
import os, msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
http://stackoverflow.com/questions/2374427/python-2-x-write-binary-output-to-stdout
Thanks, i had fixed the error.