<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
dear all,<BR>
&nbsp;<BR>
<STRONG>I am trying to implement a text from mod_python manual. the code is:</STRONG><BR>
&nbsp;<BR>
from mod_python import apache<BR>
def handler(req):<BR>&nbsp;&nbsp;&nbsp; req.content_type ="text/plain\n\n"<BR>&nbsp;&nbsp;&nbsp; req.send_http_header()<BR>&nbsp;&nbsp;&nbsp; req.write("Hello World!!!")<BR>&nbsp;&nbsp;&nbsp; return apache.ok<BR>
&nbsp;<BR>
<STRONG>and the conf file of apache is having</STRONG><BR>
&lt;Directory c:\python24\exp\web&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddHandler mod_python .py<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonHandler&nbsp;SoapTest<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonDebug On<BR>&nbsp; &lt;/Directory&gt;<BR><STRONG>I am getting this error message:</STRONG><BR>
&nbsp;<BR>
Traceback (most recent call last):<BR>&nbsp; File "C:\Python24\exp\Web\SoapTest.py", line 1, in ?<BR>&nbsp;&nbsp;&nbsp; from mod_python import apache<BR>&nbsp; File "C:\Python24\lib\site-packages\mod_python\apache.py", line 28, in ?<BR>&nbsp;&nbsp;&nbsp; import _apache<BR>ImportError: No module named _apache<BR>
&nbsp;<BR>
where as i have mod_python installed and there is apache.py file also in the mod<BR>
-python dir.<BR>
&nbsp;<BR>
Pls give me solution.<BR>
&nbsp;<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>