[Tutor] ImportError: No module named _apache

ShivKumar Anand shiv_mbm at hotmail.com
Tue May 15 12:18:11 CEST 2007


dear all,
 
I am trying to implement a text from mod_python manual. the code is:
 
from mod_python import apache
def handler(req):    req.content_type ="text/plain\n\n"    req.send_http_header()    req.write("Hello World!!!")    return apache.ok
 
and the conf file of apache is having
<Directory c:\python24\exp\web>      AddHandler mod_python .py      PythonHandler SoapTest      PythonDebug On  </Directory>I am getting this error message:
 
Traceback (most recent call last):  File "C:\Python24\exp\Web\SoapTest.py", line 1, in ?    from mod_python import apache  File "C:\Python24\lib\site-packages\mod_python\apache.py", line 28, in ?    import _apacheImportError: No module named _apache
 
where as i have mod_python installed and there is apache.py file also in the mod
-python dir.
 
Pls give me solution.
 
Thanks
Shiv
_________________________________________________________________
Sign in and get updated with all the action!
http://content.msn.co.in/Sports/FormulaOne/Default
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070515/fb51cb0c/attachment.html 


More information about the Tutor mailing list