[MBT] new ticket for pkg apache-mod_python "Doesn't work at all on testing scripts from modpython.org"

bugs at pld.org.pl bugs at pld.org.pl
Thu Dec 5 13:14:15 CET 2002


Date: 2002-12-05 13:14:15+01	Author: Marcin Wojtczuk (fastviper) <fastviper at telkab.pl> 
Title:         Doesn't work at all on testing scripts from modpython.org
Ticket ID:     #492
Ticket URL:    http://bugs.pld.org.pl/?bug=492
Package:       apache-mod_python-2.7.8-3
Distribution:  PLD-Ra.main PLD-1.0.devel.main PLD-1.0.devel.test PLD-1.0.devel.supported
Category:      doesn't work as it should
Current state: opened
Text:

I have the following config:
LoadModule python_module      lib/apache/mod_python.so
AddModule mod_python.c
<Directory /home/users/viper/public_html/py>
    AddHandler python-program .py
    PythonHandler mptest 
    PythonDebug On
</Directory>
(copy&paste from http://www.modpython.org/live/mod_python-3.0.1/doc-html/inst-testing.html)

I've created file i.py in this directory:
from mod_python import apache

def handler(req):
    req.write("Hello World!")

return apache.OK

When I view this file in browser I get:
[Error : Błąd]
[500] Internal Server Error : Wewnętrzny błąd serwera 

error_log says:
[Thu Dec  5 13:13:35 2002] [error] [client 192.168.0.7] python_handler: make_obcallback returned no obCallBack!
'import site' failed; use -v for traceback
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Thu Dec  5 13:13:37 2002] [error] [client 192.168.0.7] python_handler: make_obcallback returned no obCallBack!




More information about the pld-bugs mailing list