[mod_python] Got error : "python_handler: Dispatch() returned nothing"

De Closmadeuc, Etienne declosmadeuce at logica.com
Tue Aug 13 11:49:55 EST 2002


> Here is the configuration :
> 
> * Windows NT4 SP6
> * Apache 1.3.20 (Got the message "Apache/1.3.20 (Win32) mod_python/2.7.6
> Python/2.2.1 running..." in the Apache window)
> * Apache configuration file (httpd.conf) (dll correctly installed in
> modules directory) :
> ...
> Port 81
> ...
> LoadModule python_module modules/mod_python.dll
> ...
> <Directory "C:/Program Files/Apache Group/Apache_1_3_20/htdocs/Python">
> 	AddHandler python-program .py
> 	PythonHandler Hello
> 	PythonDebug On
> </Directory>
> 
> * Files in D:\Python22\Lib\mod_python :
> 
> 06/12/00  04:05                  2 411 __init__.py
> 13/08/02  11:26                    237 __init__.pyc
> 19/08/01  00:43                 27 728 apache.py
> 13/08/02  11:26                 26 984 apache.pyc
> 06/12/00  04:05                  5 099 cgihandler.py
> 19/08/01  00:43                 15 103 httpdapi.py
> 19/08/01  00:43                 11 092 publisher.py
> 14/12/00  00:45                 10 831 util.py
> 06/12/00  04:05                  3 360 zhandler.py
> 
> Note that "__init__.py" and "apache.py" have been automatically compiled
> by python after the url invocation.
> 
> * File in C:/Program Files/Apache Group/Apache_1_3_20/htdocs/Python
> 
> Hello.py : 
> 
> from mod_python import apache
> 
> def handler(req):
> 	req.content_type = "text/plain"
> 	req.send_http_header()
> 	req.write("Hello world !")
> 	return apache.OK
> 
> * Error message in error.log after url invocation
> (http://localhost:81/Python/Hello.py) :
> 
> [Tue Aug 13 11:26:26 2002] [error] [client 127.0.0.1] python_handler:
> Dispatch() returned nothing.
> 
> 
> Can you help me to fix that problem ? Thanks.
> 
> Etienne de Closmadeuc (declosmadeuce at logica.com)
> Logica SA
> 183, route de Canéjan 33173 GRADIGNAN CEDEX
> Tél : 05.56.75.77.00
> 
> 

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.



More information about the Mod_python mailing list