2008/11/4 Martijn Pieters <[EMAIL PROTECTED]>: >> > WSGIScriptAlias / [....]/trac.wsgi >> > WSGICallableObject trac.web.main.dispatch_request >> >> You can't have a dotted path as WSGICallableObject. Can only refer to >> objects at global scope in the file/module. > > The object is available at the global scope; in other words, > trac.web.main.dispatch_request is directly accessible at the global > scope. No matter, it's easy enough to add the line:
Ahhh, no. What is at global scope is 'trac' module reference. To look up entry point it is doing the equivalent of: >>> getattr(os,'path.join') Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'path.join' This fails although following is okay: >>> os.path.join <function join at 0x1de30> In other words, getattr() doesn't traverse dotted path by itself. > def application(*args): return trac.web.main.dispatch_request(*args) As per documentation just use: import trac.web.main application = trac.web.main.dispatch_request See: http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac Can even use: from trac.web.main import dispatch_request as application >> These issues and others covered in: >> >> http://code.google.com/p/modwsgi/wiki/InstallationIssues >> http://code.google.com/p/modwsgi/wiki/ApplicationIssues > > And excellent documentation that is too. > > I also tried to add logging lines, but that would also cause the > segfault: See: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques and in particular the last section. Try to attach gdb to daemon process and then trigger request and get back stack trace using: thread apply all bt as explained. If it is a shared library version mismatch problem, this may help to indicate where the problem is. 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 -~----------~----~----~----~------~----~------~--~---
