mod_python
Verfasst: Donnerstag 26. Februar 2004, 08:40
Hallo,
Konfiguration:
+ Windows 2000 Server + Service Pack 4
+ XAMPP 0.9 (Apache 2.0.43 + PHP + Perl)
+ Python 2.3.2
+ Spyce 1.3.12
+ mod_python 3.0.4
Das Testbeispiel (Punkt 2.4) aus der mod_python Installation wird
per http://127.0.0.1/test/py.py aufgerufen, im Browser
erscheint folgende Fehlermeldung:
Mod_python error: "PythonHandler mptest"
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\mod_python\apache.py", line 320, in HandlerDispatch
module = import_module(module_name, config)
File "C:\Python23\Lib\site-packages\mod_python\apache.py", line 496, in import_module
f, p, d = imp.find_module(parts, path)
ImportError: No module named mptest
Hierzu habe ich bereits zahlreiche Beiträge gefunden, allerdings
nichts was mir entscheident weiterhelfen konnte.
In der httpd.conf stehen folgende Zeilen (keine Mime-Types für py
oder pyc eingestellt):
LoadModule python_module modules/mod_python.so
<Directory /xampp/htdocs/test>
AddHandler python-program .py
PythonHandler mptest
PythonDebug On
</Directory>
Jeder Tipp ist willkommen!
Gruss
Volker
Konfiguration:
+ Windows 2000 Server + Service Pack 4
+ XAMPP 0.9 (Apache 2.0.43 + PHP + Perl)
+ Python 2.3.2
+ Spyce 1.3.12
+ mod_python 3.0.4
Das Testbeispiel (Punkt 2.4) aus der mod_python Installation wird
per http://127.0.0.1/test/py.py aufgerufen, im Browser
erscheint folgende Fehlermeldung:
Mod_python error: "PythonHandler mptest"
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\mod_python\apache.py", line 320, in HandlerDispatch
module = import_module(module_name, config)
File "C:\Python23\Lib\site-packages\mod_python\apache.py", line 496, in import_module
f, p, d = imp.find_module(parts, path)
ImportError: No module named mptest
Hierzu habe ich bereits zahlreiche Beiträge gefunden, allerdings
nichts was mir entscheident weiterhelfen konnte.
In der httpd.conf stehen folgende Zeilen (keine Mime-Types für py
oder pyc eingestellt):
LoadModule python_module modules/mod_python.so
<Directory /xampp/htdocs/test>
AddHandler python-program .py
PythonHandler mptest
PythonDebug On
</Directory>
Jeder Tipp ist willkommen!
Gruss
Volker