lopuhin / kaggle-imet-2019

91 stars 24 forks source link

transform to base64 problem #1

Open Hansxsourse opened 5 years ago

Hansxsourse commented 5 years ago

when I run the build.sh file

File "build.py", line 6 def encode_file(path: Path) -> str: ^ SyntaxError: invalid syntax

lopuhin commented 5 years ago

This is likely happening on Python 2.7, the repo assumes Python 3.6, should have mentioned this.

Hansxsourse commented 5 years ago

My python version is 3.6, both windows and Ubuntu can’t work, I will work on it tonight

lopuhin commented 5 years ago

@Hansxsourse my bad, this line https://github.com/lopuhin/kaggle-imet-2019/blob/f1ec0827149a8218430a6884acf49c27ba6fcb1f/build.sh#L4 needs to be changed to use python3.6 - for me it worked because python was pointing to python3.6

Hansxsourse commented 5 years ago

Thanks, it's my fault, my default python is 2.7, so run the bash will wrong