[mod_python] mod_python problems on w2k box

Volker.Duetsch at nexans.com Volker.Duetsch at nexans.com
Tue Feb 24 13:07:55 EST 2004


I installed mod_python binary 3.0.4 on my windows 2000 sp3 box.
Already located is python 2.3.2 (from activestate) and I configured
httpd.conf (I'm using xampp 0.9 from apachefriends.org) as described
in the documents.

Running the test script as listed in 2.4 of the Mod_python Manual results 

[error] [client] PythonHandler mptest: ImportError: No
module named mptest

[notice] mod_python: (Re)importing module 'mptest'

[error] [client] PythonHandler mptest: Traceback (most
recent call last):

[error] [client] PythonHandler mptest:   File
"C:\Python23\Lib\site-packages\mod_python\apache.py", line 320, in
HandlerDispatch module = import_module(module_name, config)

[error] [client] PythonHandler mptest:   File
"C:\Python23\Lib\site-packages\mod_python\apache.py", line 496, in
import_module f, p, d = imp.find_module(parts[i], path)

[error] [client] PythonHandler mptest: ImportError: No
module named mptest

[notice] Parent: Received shutdown signal -- Shutting down the

apache-document-root: c:\xampp\htdocs

in httpd.conf:
LoadModule python_module modules/mod_python.so

<Directory /xampp/htdocs/test>
  AddHandler python-program .py
  PythonHandler mptest.py
  PythonDebug On

- no mime configuration for py or pyc - files!

I've found several postings related to this topic, but none of them
could help to fix my problem...


E-Mail: volker.duetsch at nexans.com

More information about the Mod_python mailing list