On Fri, Nov 10, 2023 at 10:30 PM Jun Omae <jun6...@gmail.com> wrote: > "ModuleNotFoundError: No module named 'trac'" is logged. So that mod-wsgi > cannot find Trac. If you haven't install to standard directory, the installed > location should be configured using mod-wsgi directives in apache > configuration > file. > > e.g. > > WSGIScriptAlias /trac /var/www/cgi-bin/trac.wsgi > > ↓ > > # Replace </path/to/your-virtualenv> with your virtualenv location > WSGIDaemonProcess trac python-home=</path/to/your-virtualenv> > display-name=%{GROUP} > WSGIScriptAlias /trac /var/www/cgi-bin/trac.wsgi process-group=trac > application-group=%{GLOBAL}
Where is directory you've install Trac to? How have you installed? Also, the installed directory should be readable from apache process (www-data) or configure user parameter of WSGIDaemonProcess. See also: https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIDaemonProcess.html#user Your trac.wsgi has another issue: ==== import os os.environ['TRAC_ENV'] = '/home/deli/trac' os.environ['PYTHON_EGG_CACHE'] = '/home/deli/trac/eggs' from trac.web.main import dispatch_request def application(environ, start_response): environ['trac.env_path'] = '/usr/local/trac/mysite' return trac.web.main.dispatch_request(environ, start_response) ==== Only one of os.environ['TRAC_ENV'] and environ['trac.env_path'] is enough. And, two paths should be same. -- Jun Omae <jun6...@gmail.com> (大前 潤) -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAEVLMagMd-_xZCwGW59hCYe-izuoqa44HfsVeshNUX95itWr7g%40mail.gmail.com.