[mod_python] mpcp

Jim Gallacher jpg at jgassociates.ca
Fri Aug 25 16:38:07 EDT 2006


Robert Brewer wrote:
> Jim Gallacher wrote:
>> Can you provide a link to mpcp? Google doesn't turn up anything
> obvious.
> 
> mpcp can be found at http://jamwt.com/
> 
> [Aside: it will be distributed as cherrypy._cpmodpy when version 3 comes
> out.]

There is certainly nothing fancy in mpcp.py. Any chance you have 2 
python versions installed, and apache/mod_python is finding a different 
one from the cmd line interpreter?

You might want to try dumping the python version in a simple handler.

from mod_python import apache
import sys

def handler(req):
     req.content_type = 'text/plain'
     req.write(str(sys.version))
     # dump the sys. path for good measure
     req.write('\n'.join(sys.path))
     return apache.OK

But I guess you could check the server startup log as well. :)

Jim


More information about the Mod_python mailing list