[mod_python] ImportError: No module named mptest

Juan Hernandez alucard at kanux.com
Mon Jun 21 15:22:06 EDT 2004

Hi there...

    This is my first question to this mailing list and I guess it's a 
pretty stupid one... I haven't found a solution to it. I'm trying to 
insta ll mod_python inmy slackware machine, my apache was built from 
source -it's not tar.gz package- and I'm getting this error:


Mod_python error: "PythonHandler mptest"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 181, in Dispatch
    module = import_module(module_name, _req)

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 332, in import_module
    f, p, d = imp.find_module(parts[i], path)

ImportError: No module named mptest
And here's my apache virtual domain directive


    ServerName webmail.domain.com.ve
    ServerAlias www.domain.com.ve
    ServerAlias domain.com.ve
    DocumentRoot /home/domain
    ErrorLog /var/log/apache/webmail.domain.com.ve-error_log
    CustomLog /var/log/apache/webmail.domain.com.ve-access_log combined

<Directory /home/webmail/python/>
AddHandler python-program .py
PythonHandler mptest
PythonDebug On

All I have been able to find is that, is that in version 2.7.7 there was 
a misspelled word that causes this and, that it was fixed in 2.8.8 and 
I'm using 2.7.10 with apache 1.3.31

Thanks a lot for your time


More information about the Mod_python mailing list