File "<stdin>", line 53 SyntaxError: invalid syntax



  • This started happening today and I cannot locate the cause of this error. Whenever I try to run a file, this error always immediately shows up in the terminal window. I've tried updating the firmware to 1.18.2.r5 and clearing out the flash on the GPy.

    I could fix this if it gave a proper stack trace, but the stack trace never gets to my code.



  • Found my problem. I had commented the single line in a while statement, like so:

    while True:
        #someFunction()

Log in to reply
 

Pycom on Twitter