Jump to content

[Answered] Python Issue


artavazd

Recommended Posts

I cannot run Python scripts on HelioHost at my URL http://benesolutions.heliohost.org/cgi-bin/test.py.

 

It is a simplest script with the following content:

 

#!/usr/bin/python

 

print("Content-type: text/html\n\n")

print("This is a Python script text.")

 

Permissions are 0755, as recommended.

 

The server response was

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@benesolutions.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

Could you clarify please what I’m doing wrong.

Link to comment
Share on other sites

Thank you very much - now it works. Never could imagine that Python is so sensitive to EOLs. I've a project with tens of files, all prepared in Windows - it seems, I've to convert all of them. However, thanks again, the advice was really helpful.

Link to comment
Share on other sites

I'm sorry, but I've another issue now. As it was pointed on your Website, I can use Python 3.2 (http://www.heliohost.org/home/features/languages/python). Currently it is version 2.43. How could I switch to that Python 3.2? I'm asking because (I'm sure you know that even better then me) there is a lot of differences between those Python versions.

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...