mod_python problem

Gandalf gandalf at geochemsource.com
Fri May 7 07:38:55 EDT 2004


>>Apache/2.0.48 (Unix) PHP/4.3.4 mod_python/3.0.3 Python/2.3.3 
>>mod_ssl/2.0.48 OpenSSL/0.9.7c Server at arwen.msnet Port 80
>>
>>This is what I have in httpd.conf:
>>
>>LoadModule python_module libexec/apache2/mod_python.so
>>AddHandler mod_python .py
>>AddType applcation/x-http-python .py
>>    
>>
>
>Try:
>
>  AddHandler python-program .py
>
>The "AddHandler mod_python .py" version is intended to work with mod_python
>3.1.3 and higher. Check out http://www.modpython.org/FAQ/faqw.py?req=all.
>
>For sympathy's sake, I've been using the manual released with 3.1.0a which also
>uses "AddHandler mod_python" and doesn't mention python-program at all.
>
>Aloha,
>the poiboy
>

  God bless you!

I have been trying for days without success. Now I got this error below,
and I'm very happy with that. No question, I can handle from here. :-)

Many thanks,

   G

http://arwen.msnet/index.py:

Mod_python error: "PythonHandler index"

Traceback (most recent call last):

  File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 320, in HandlerDispatch
    module = import_module(module_name, config)

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

ImportError: No module named index


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040507/e9206837/attachment.html>


More information about the Python-list mailing list