Skip navigation.
Home

SyntaxError: invalid s/appengine/ext/admin/__init__.py", line 204, in post compiled_code = compile(code, '<string>', 'exec')

Problem

Occurs when running some code through the "interactive console" of google app engine

Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/admin/__init__.py", line 204, in post
    compiled_code = compile(code, '<string>', 'exec')
  File "<string>", line 40
     
    ^
 SyntaxError: invalid syntax

Solution

Delete the blank line