[mod_python] could not import mod_python.apache

Linux linux at mensagero.com.br
Wed May 2 12:19:13 EST 2001


Hello friends:)

I use apache 1.3.14, python 1.5.2, in a box (linux) Conectiva 6.0 - a RedHat
like linux.
I install mod_python 2.7.1-1.

When I open a directory example in a browser, I got a error 500. The
error_log of apache sais:

make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Wed May  2 12:04:41 2001] [error] [client XXX.XXX.XXX.XXX] python_handler:
make_obcallback returned no obCallBack!

Something is wrong, and my poor knowledge about python is not help.

In http.conf

<IfModule mod_python.c>
  Alias /mod_python/ /var/www/mod_python_test/
  <Directory /var/www/mod_python_test>
    AllowOverride FileInfo
  </Directory>
</IfModule>

In .htaccess

SetHandler python-program
PythonHandler pythonhandler

In pythonhandler.py

from mod_python import apache

def handler(req):
    req.send_http_header()
    req.write("Hello to the World from "+req.uri+"!")
    return apache.OK

tanks for any help.

in time: my english is poor, but my soul is better :)
----
Julio Cesar J Melati
Administrador de Redes

http://www.mensagero.com.br
falecom at mensagero.com.br




More information about the Mod_python mailing list