2009/9/9 John Blaze <[email protected]>:
>
> Hi most of my install problems have been solved, but I keep getting
> this message on all me wsgi files: child pid 98608 exit signal Trace/
> BPT trap (5)
>
> This works fine
> import sys, os
> def application(environ, start_response):
>    status = '200 OK'
>    output = 'Hello World!'
>    print >> environ['wsgi.errors'], "application debug #1"
>    response_headers = [('Content-type', 'text/plain'),
>                        ('Content-Length', str(len(output)))]
>    start_response(status, response_headers)
>    print >> environ['wsgi.errors'], "application debug #2"
>    return [output]
>
> But I simple Trac wsgi file does not
>
> import sys
> sys.stdout = sys.stderr
>
> import os
> os.environ['TRAC_ENV'] = '/Users/jstates/Sites/Trac/theirry'
> os.environ['PYTHON_EGG_CACHE'] = '/Users/jstates/Sites/Trac/theirry/
> eggs'
> import trac.web.main
> application = trac.web.main.dispatch_request
>
> Does that wsgi startup look correct, or what am I doing wrong?

Trac problems can come from a few areas.

1. Not setting:

  WSGIApplicationGroup %{GLOBAL}

This is needed as Python wrappers for subversion only work reliably in
main interpreter.

2. Mismatch in expat library used by Apache and by Python. If using
Python 2.5 or later, shouldn't be a problem.

3. You are load subversion Apache modules, mod_dav_svn etc, and the
version of subversion they use is different to that which Python
subversion wrappers are using.

4. Mismatch in database library being used. Often caused by mod_php
using a conflicting version.

Can you comment on the above and whether they may be an issue or
whether you are using Apache module that can conflict.

Also ensure you read:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues
http://code.google.com/p/modwsgi/wiki/InstallationIssues

Graham

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to