On 11/08/09 13:31, arantius wrote: > I've had Trac installed for some time, on my Gentoo powered server. I > believe my most recent update has broken something...
I have worked around this issue with what I feel is a dirty fix: $ diff -u /usr/share/webapps/trac/0.11.5/hostroot /cgi-bin/trac.fcgi ./trac.fcgi --- /usr/share/webapps/trac/0.11.5/hostroot/cgi-bin/trac.fcgi 2009-11-08 22:56:04.500157000 -0500 +++ ./trac.fcgi 2009-11-09 18:47:02.695491012 -0500 @@ -16,6 +16,29 @@ # Author: Jonas Borgström <[email protected]> try: + import os + os.environ['TRAC_ENV'] = "..." + + # Trac doesn't import these on its own? + from trac.db import mysql_backend + from trac.mimeview import rst + from trac.ticket import query + from trac.ticket import report + from trac.versioncontrol import svn_fs + from trac.web import auth + from trac.wiki import macros + + from trac import about + from trac import attachment + + from trac.admin import web_ui + from trac.prefs import web_ui + from trac.search import web_ui + from trac.ticket import web_ui + from trac.timeline import web_ui + from trac.versioncontrol import web_ui + from trac.wiki import web_ui + from trac.web import fcgi_frontend fcgi_frontend.run() except SystemExit: (Directory removed for privacy.) So I have this file as my fastcgi launcher, which specifies this project's path. And I found that if I add all these imports, suddenly things start to work. I'm sure there's other things that I'm missing. And I have no idea why Trac isn't importing these things as it needs them, anyway. But hopefully it's a clue as to what is going wrong. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" 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/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
