[mod_python] mod_python problem

Nitesh Nitesh at photoninfotech.com
Thu Mar 10 06:01:23 EST 2005


Hi all

 I am getting this error on compling test.py

Mod_python error: "PythonHandler test"

Traceback (most recent call last):

  File "/usr/src/build/276269-i386/install/usr/lib/python2.2/site-packages/mod_python/apache.py", line 332, in HandlerDispatch

  File "/var/www/html/cmacademy/test.py", line 5, in handler
    req.send_http_headers()

AttributeError: 'mp_request' object has no attribute 'send_http_headers'

My apache configuartion is:

<Directory /var/www/html/cmacademy>
Options Multiviews Indexs SymLinksOwnerMatch IncludesNoexec ExecCGI
AddHandler python-program .py
PythonHandler test
PythonPath "['/var/www/html/cmacademy']+sys.path"
PythonDebug On
Allow from all
</Directory>

I am using Apache 2.0.46 and python 2.2

Please help me its urgent

Regards
Nitesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050310/029c361a/attachment.html


More information about the Mod_python mailing list