|
mollo
mollo at club-internet.fr
Thu Mar 4 10:57:56 EST 2004
Hello List,
I've installed last mod_python 2.7 with python 2.2 and apache 1.3.26
(Debian woody)
The installations examples given in the mod_python doc works nice.
AddModule [snip] mod_python.so
<Directory /var/www/python>
AddHandler python-program .py
PythonHandler test # the test.py "hello world" located in
# /var/www/python
PythonDebug On
</Directory
After I'added spyce (spyce.sourceforge.net) :
<IfModule mod_python.c>
AddHandler python-program .spy
PythonHandler run_spyceModpy::spyceMain
PythonPath "sys.path+[r'/usr/lib/spyce']"
#PythonOption SPYCE_CONFIG "/mydir/spyce.conf"
#PythonOptimize On
</IfModule>
Spyce run nice, but the "original" directives for mod_python don't work anymore with the test.py giving :
---------------
Mod_python error: "PythonHandler mod_python"
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line 185, in Dispatch
object = resolve_object(req, module, object_str, silent)
File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line 394, in resolve_object
raise AttributeError, s
AttributeError: module '/usr/lib/python2.2/site-packages/mod_python/__init__.py' contains no 'handler'
----------------
Any tricks for running theses two tools as handler :
mod_python for .py
Spyce for .spy
Thanks
Mathieu
--
|