Do not go in cycles in the remark "with BOM". It probably doesn't matter. Usually this error means that the Python you are trying to run does not support the encoding you declare. Note:
% head -1 tmp.py # -*- coding: asdfasdfasdf -*- % python tmp.py File "tmp.py", line 1 SyntaxError: encoding problem: with BOM
The Python installation that you use on this ARM Embedded Linux board probably lacks the "latin-1" encoding. Since you do not have non-ASCII characters in the source file, simply declare the encoding as "ascii" or do not use the encoding at all.
source share