|
Ondrej Krajicek
xkrajic at ics.muni.cz
Thu Apr 5 21:02:09 EST 2001
Hello all,
I've downloaded latest mod_python (2.7.2 and precompiled dll
for Windows). I've placed mod_python.so (renamed dll) to
the proper directory (it loads) and I've copied
lib directory from mod_python package to
my site-packages directory. The sys.path
looks like this (python site.py):
sys.path = [
'd:\\app\\python\\lib',
'd:\\app\\python\\pythonwin',
'd:\\app\\python\\win32',
'd:\\app\\python\\win32\\lib',
'd:\\app\\python',
'd:\\app\\python\\dlls',
'd:\\app\\python\\lib\\plat-win',
'd:\\app\\python\\lib\\lib-tk',
'd:\\app\\python\\lib\\site-packages',
'd:\\app\\python\\lib\\site-packages\\mod_python',
]
site directories = [
'd:\\app\\python\\lib\\site-packages',
'd:\\app\\python\\lib\\site-python',
]
I've set up the example as is stated in manual,
but instead of nice "Hello World!" message
smiling to me, I get internal server error (500).
Log excerpt:
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Thu Apr 05 20:34:34 2001] [error] [client 127.0.0.1] python_handler:
make_obcallback returned no obCallBack!
[Thu Apr 05 20:34:34 2001] [error] [client 127.0.0.1] python_handler:
make_obcallback returned no obCallBack!
[Thu Apr 05 20:34:35 2001] [error] [client 127.0.0.1] python_handler:
make_obcallback returned no obCallBack!
[Thu Apr 05 20:34:35 2001] [error] [client 127.0.0.1] python_handler:
make_obcallback returned no obCallBack!
When I try to execute the test.py in interpreter
(python test.py), I got:
Traceback (most recent call last):
File "test.py", line 1, in ?
from mod_python import apache
File "d:\app\python\lib\site-packages\mod_python\apache.py", line 55,
in ?
import _apache
ImportError: No module named _apache
My configuration is:
Windows 2000 Server Sp1
ActivePython from ActiveState (based on Python2.0)
Apache 1.3.19 for Win32 running as service
I am new to python, new to apache and new to mod_python.
Can anyone please help me ?
TIA,
Ondrej Krajicek
--
---------------------------------------------------------------------
Ondrej Krajicek OK-)
email: xkrajic et {ics,fi}.muni.cz
Omnia ad maiorem Informaticae gloriam.
-->>> The Nexus Framework <<<-- sourceforge.net/projects/nexusproject
Of course we can, moreover we must, it is our holiest duty.
---------------------------------------------------------------------
|