t212 Posted September 1, 2020 Posted September 1, 2020 (edited) The next problem I see is your test.py file has Dos line endings. This is usually caused by using a Windows editor, such as notepad, that doesn't understand line endings, and then uploading the file to the server. This is a Linux server, so you need to have Linux line endings. The easiest way to accomplish this is to create the file through the cpanel file editor, and copy/paste your code in. If you prefer to use an editor on your Windows computer and then upload through FTP you'll need to get an editor that understands line endings. I've never used it myself, but I've heard that Notepad++ can do this.I am on Tommy server and I copy pasted the code you gave above, but I still get the error Edited September 1, 2020 by t212
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now