On a Unix-like system, the line endings in the program file must be Unix style line endings. This is mandatory because the web
server checks the first line of the script and tries to run the program specified there. It gets easily confused by Windows line endings (Carriage Return & Line Feed, also called CRLF), so you have to convert the file to Unix line endings (only
Line Feed, LF). This can be done automatically by uploading the file via FTP in text mode instead of binary mode, but the preferred way is just telling your editor to save the files with Unix line endings. Most editors support this.On a Unix-like system, the line endings in the program file must be Unix style line endings. This is mandatory because the web
server checks the first line of the script and tries to run the program specified there. It gets easily confused by Windows line endings (Carriage Return & Line Feed, also called CRLF), so you have to convert the file to Unix line endings (only
Line Feed, LF). This can be done automatically by uploading the file via FTP in text mode instead of binary mode, but the preferred way is just telling your editor to save the files with Unix line endings. Most editors support this.
I would have to say that one of my biggest issues with python is spacing and colons. They always tend to throw me off if I have missing spacing or a missing colon and it comes up saying "Invalid Syntax" and then if I don't have a colon, the system won't tell me where my error is so I have to spend a few minutes finding the error manually and if I can't find it, I have to rewrite the code sometimes.I would have to say that one of my biggest issues with python is spacing and colons. They always tend to throw me off if I have missing spacing or a missing colon and it comes up saying "Invalid Syntax" and then if I don't have a colon, the system won't tell me where my error is so I have to spend a few minutes finding the error manually and if I can't find it, I have to rewrite the code sometimes.
Hunter
server checks the first line of the script and tries to run the program specified there. It gets easily confused by Windows line endings (Carriage Return & Line Feed, also called CRLF), so you have to convert the file to Unix line endings (only
Line Feed, LF). This can be done automatically by uploading the file via FTP in text mode instead of binary mode, but the preferred way is just telling your editor to save the files with Unix line endings. Most editors support this. On a Unix-like system, the line endings in the program file must be Unix style line endings. This is mandatory because the web server checks the first line of the script and tries to run the program specified there. It gets easily confused by Windows line endings (Carriage Return & Line Feed, also called CRLF), so you have to convert the file to Unix line endings (only Line Feed, LF). This can be done automatically by uploading the file via FTP in text mode instead of binary mode, but the preferred way is just telling your editor to save the files with Unix line endings. Most editors support this.
Are you sure you want to delete this post?