[2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Gilles
Hello I have a couple of newbie questions about using Python in a FastCGI + Flup context on a shared CentOS server: 1. The following script runs fine... = #!/usr/bin/env python2.6 def myapp(environ, start_response): start_response('200 OK',

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Gilles
On Mon, 11 Feb 2013 10:30:01 +0100, Gilles nos...@nospam.com wrote: I have a couple of newbie questions about using Python in a FastCGI + Flup context on a shared CentOS server: Please ignore the thread. I found the error, and a way to catch compile-time errors (log on through SSH, and run

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Chris Angelico
On Mon, Feb 11, 2013 at 8:39 PM, Gilles nos...@nospam.com wrote: On Mon, 11 Feb 2013 10:30:01 +0100, Gilles nos...@nospam.com wrote: I have a couple of newbie questions about using Python in a FastCGI + Flup context on a shared CentOS server: Please ignore the thread. I found the error,

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Gilles
On Mon, 11 Feb 2013 21:30:12 +1100, Chris Angelico ros...@gmail.com wrote: That'll catch some forms of error, but not everything. You may also want to consider looking for your server's error log - that may be getting the actual traceback. I don't know what your server setup is, but there's likely

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Chris Angelico
On Mon, Feb 11, 2013 at 10:22 PM, Gilles nos...@nospam.com wrote: On Mon, 11 Feb 2013 21:30:12 +1100, Chris Angelico ros...@gmail.com wrote: That'll catch some forms of error, but not everything. You may also want to consider looking for your server's error log - that may be getting the actual

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Gilles
On Mon, 11 Feb 2013 22:30:45 +1100, Chris Angelico ros...@gmail.com wrote: Try running python2.6 -V Your shebang line says that it's looking for a program named python2.6, which is quite probably not the same as the one named just python. Indeed, they have two versions of Python installed: #

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Chris Angelico
On Mon, Feb 11, 2013 at 10:36 PM, Gilles nos...@nospam.com wrote: On Mon, 11 Feb 2013 22:30:45 +1100, Chris Angelico ros...@gmail.com wrote: Try running python2.6 -V Your shebang line says that it's looking for a program named python2.6, which is quite probably not the same as the one named

Re: [2.4.3/Newbie] Web script doesn't run

2013-02-11 Thread Gilles
On Mon, 11 Feb 2013 22:42:50 +1100, Chris Angelico ros...@gmail.com wrote: It's entirely possible you have a third Python, a 3.x, as well. Different Pythons coexist quite happily on a system. Thank for the help. I'm on my way to figure out how mod_fcgid, Flup, and Python scripts work together. --