[Xapian-discuss] Xapian 1.0 / Apache / Python problem

Philip Neustrom philipn at gmail.com
Fri May 25 00:38:57 BST 2007


What's the sys.path for your apache mod_python configuration?  Make
sure it's pointing to where the python xapian libraries exist.

--Philip

On 5/24/07, Jason Stitt <jason at wistechnology.com> wrote:
> Hi,
> Since upgrading to Xapian 1.0 I'm no longer able to get the python
> bindings to work running under apache with mod_python.
>
> Works fine from the python command line interpreter/a python script,
> but not under apache.
>
> There's no exception and nothing in the server error logs. I figured
> it might be a permissions issue but chmod -R 777 on the index
> directory didn't help. Tried on two different machines so far. Yes,
> the index was generated using 1.0.
>
> Below is a basic mod_python handler that fails for me. It prints
> Begin but not OK.
>
> Where do I begin to figure out what's wrong here?
>
> Thanks,
> Jason
>
>
> from mod_python import apache
> import xapian
>
> def handler(req):
>      req.content_type = "text/html"
>      req.write('Begin')
>
>      d = xapian.Database('my/index/path')
>
>      req.write(' OK')
>      return apache.OK
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>



More information about the Xapian-discuss mailing list