Invalid syntax (, line 1014)

I currently have more than 5 EEv4 websites. I have been trying to work on 4 of them. 1 of them is down due to an issue discussed over here: Error: 'ssl-renew' is not a registered subcommand of 'site'. See 'ee help site' for available subcommands

The other four are up, but will not let me manage them via the command line. I’m unable to issue any EE command without getting:

invalid syntax (, line 1014)

I can still run various system commands, but cannot run any EE command on any of the 4 servers, without getting this error.

FYI: This error seems to be the exact same issue as: Ee commands throw invalid syntax (, line 1014) so it seems like it is an issue on v4 and v3


Is your server Debian by any chance? A quick Google search of the error returns a list that seems to paint this as a Python 3 error on Debian 8. If you are not running Debian, we can at least eliminate that as a cause and focus more on Python versions as the problem.


Absolutely using Debian.

Operating System: Debian GNU/Linux 8 (jessie)

Kernel: Linux 4.9.0-0.bpo.9-amd64

Architecture: x86-64

I found a solution that works well enough to update python and then move on.

Here is an example of the issue:

Here is the file that will need to be updated (See: and


…at row 1014 and 1015. That the “f” out of row 1014 and 1015, as outlined in the below file:

When you exit your text editor, don’t forget to save.

Then run the following command:

sudo apt-get install python

This fixed the issue for me.

1 Like

This is perfect. Thanks for posting for others to find and read. Seems to be a viable solution as some of the Python upgrades I saw for Jessie were messy at best.