<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
dear all,<BR>
<BR>
<STRONG>I am trying to implement a text from mod_python manual. the code is:</STRONG><BR>
<BR>
from mod_python import apache<BR>
def handler(req):<BR> req.content_type ="text/plain\n\n"<BR> req.send_http_header()<BR> req.write("Hello World!!!")<BR> return apache.ok<BR>
<BR>
<STRONG>and the conf file of apache is having</STRONG><BR>
<Directory c:\python24\exp\web><BR> AddHandler mod_python .py<BR> PythonHandler SoapTest<BR> PythonDebug On<BR> </Directory><BR><STRONG>I am getting this error message:</STRONG><BR>
<BR>
Traceback (most recent call last):<BR> File "C:\Python24\exp\Web\SoapTest.py", line 1, in ?<BR> from mod_python import apache<BR> File "C:\Python24\lib\site-packages\mod_python\apache.py", line 28, in ?<BR> import _apache<BR>ImportError: No module named _apache<BR>
<BR>
where as i have mod_python installed and there is apache.py file also in the mod<BR>
-python dir.<BR>
<BR>
Pls give me solution.<BR>
<BR>
Thanks<BR>
Shiv<BR><br /><hr />Sign in and get updated with all the action! <a href='http://content.msn.co.in/Sports/FormulaOne/Default' target='_new'>Formula One</a></body>
</html>