[Tutor] ImportError: No module named _apache

Eric Walstad eric at ericwalstad.com
Tue May 15 17:53:53 CEST 2007

Hey ShivKumar,

ShivKumar Anand wrote:
> *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 _apache
> ImportError: No module named _apache

Are you trying to call your mod_python code from the command line?  If so:
"you can't import mod_python into scripts that are run from the command
line or any other context outside a running apache server."


More information about the Tutor mailing list