Jump to content

T212 Python 500 Error


t212

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...