mod_python on OSX/Panther (was Re: [mod_python] mod_python / mod_php4 w/apache 2)

Justin Ryan jryan at qutang.net
Sun Jun 6 00:25:34 EDT 2004


Ok, wait.. That kept it from erroring on all requests, but when I try 
to access a .pt file (using PSE, of course), I get the same 
jibba-jabba.

so, in my httpd.conf I have:

     <IfModule mod_python.c>
     PythonPath "sys.path + 
['/Users/justinryan/.src/core/live/python/lib']"
     PythonHandler pse.handler
     AddHandler python-program .pt
     </IfModule>

and in error_log I get:

[Sat Jun 05 23:16:30 2004] [error] make_obcallback: could not import 
mod_python.apache.
ImportError: No module named mod_python.apache

I changed it to say:

PythonHandler mod_python.publisher
AddHandler python-program .py

and I stuck a file 'modpythontest.py' that just has:

def test(req, var):
	return "Variable: %s" % var

Same deal..

:-/

On Jun 4, 2004, at 11:33 PM, Justin Ryan wrote:

> Oh.  Look.  It worked! :)



More information about the Mod_python mailing list