Jump to content

Recommended Posts

Posted (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 by t212

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...