durusmail: quixote-users: Multiple interpreters? I didn't think so...
Multiple interpreters? I didn't think so...
2002-10-16
2002-10-16
2002-10-16
2002-10-16
Multiple interpreters? I didn't think so...
Hugo van der Merwe
2002-10-16
I get the following in my errors.log:


[Wed Oct 16 19:18:08 2002] [error] PythonHandler quixote.mod_python_handler:
Traceback (most recent call last):
[Wed Oct 16 19:18:08 2002] [error] PythonHandler quixote.mod_python_handler:
File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line 193, in
Dispatch
    result = object(req)
[Wed Oct 16 19:18:08 2002] [error] PythonHandler quixote.mod_python_handler:
File "/usr/lib/python2.2/site-packages/quixote/mod_python_handler.py", line 43,
in handler
    pub = ModPythonPublisher(package)
[Wed Oct 16 19:18:08 2002] [error] PythonHandler quixote.mod_python_handler:
File "/usr/lib/python2.2/site-packages/quixote/publish.py", line 95, in __init__
    raise RuntimeError, "only one instance of Publisher allowed"
[Wed Oct 16 19:18:08 2002] [error] PythonHandler quixote.mod_python_handler:
RuntimeError: only one instance of Publisher allowed


My httpd.conf contains:



   SetHandler python-program
   PythonHandler quixote.mod_python_handler
   PythonOption quixote-root-namespace webdict
   PythonInterpreter quix



   SetHandler python-program
   PythonHandler quixote.mod_python_handler
   PythonOption quixote-root-namespace willows
   PythonInterpreter quix



I thought "PythonInterpreter" will get the two to use the same
interpreter, why am I getting "more than one instance of the publisher",
is it because of my root-namespace differing?

So what would be the "right" way to handle two urls like this?

Thanks,
Hugo van der Merwe

reply