[mod_python] mod_python.publisher error

Danylo Berko danylo at freetobemarlo.net
Wed Oct 12 12:38:52 EDT 2005


I'm getting a mod_python.publisher error when trying to run a form handler. 
It's actually the feedback.py from the O'Reilly Learning Python book.

The script imports the following:

import cgi, cgitb, os, sys, string, time
import httplib, mimetypes
cgitb.enable()


I keep getting the following error:


Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/mod_python/publisher.py", line 98,
in handler
    path=[path])

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

ImportError: No module named feedback




httpd.conf file

<Location "/webdir">
    AddHandler python-program .py
    PythonHandler mod_python.publisher
    PythonDebug On
</Location>


Any ideas as to the source of and fix to the problem?

Thanks,

Dan

________________________________________________
Message sent using UebiMiau 2.7.8




More information about the Mod_python mailing list