eos icon indicating copy to clipboard operation
eos copied to clipboard

why exec bios-boot-tutorial.py raise error ??? eos version dawn-v4.2.0

Open shishi614 opened this issue 8 years ago • 1 comments

eos1@eos1-virtual-machine:~/eos/tutorials/bios-boot-tutorial$ ./bios-boot-tutorial.py -a File "./bios-boot-tutorial.py", line 144 factor = 1_000_000_000 / sum(dist) ^ SyntaxError: invalid syntax

thanks!!

shishi614 avatar Jun 07 '18 08:06 shishi614

This is Python 3.6 syntax. Many distributions ship with Python 3.5. There are discussions about removing the 3.6-specific features, but that has not yet happened. Until then, install Python 3.6 and edit the shebang line of the script to call it explicitly (if you prefer to not change your Python version in your OS preferences).

jgiszczak avatar Jun 07 '18 20:06 jgiszczak