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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to