SYNTAX_ERROR

CompileSeen in: The editor

What happened

The file is not valid Python, or is not text in UTF-8. Nothing else can be checked until it is.

What to do

Fix the syntax at the line the message names. The message is Python's own.

Example

text
strategy.py, line 3: invalid syntax [SYNTAX_ERROR]

The wording of the message depends on your file, and the code does not. An error stops the file from loading.

Ask about this in the forum