I am getting this same error. I'm new to trac and python, the "hello world" test script works fine. When I type "python" and get a prompt, I typed "import trac" and was returned to a prompt. There were no errors, I assume this means it worked? I've been searching around and several people with this problem found that it was a permission issue, but I have no idea on which files or directories. The apache user owns the directory where the trac projects are located (/usr/local/data/trac).
The error in the apache log is: Enter code here...Sep 18 16:36:07 neon httpd: [Mon Sep 18 16:36:07.686471 2017] [:error] [pid 17696] [client 156.68.64.176:54205] mod_wsgi (pid=17696 ): Exception occurred processing WSGI script '/usr/local/data/trac/projects/share/static/cgi-bin/trac.wsgi'., referer: http://localhost/ Sep 18 16:36:07 neon httpd: [Mon Sep 18 16:36:07.686533 2017] [:error] [pid 17696] [client 156.68.64.176:54205] Traceback (most recent call last):, referer: http://localhost/ Sep 18 16:36:07 neon httpd: [Mon Sep 18 16:36:07.686557 2017] [:error] [pid 17696] [client 156.68.64.176:54205] File "/usr/local/data/trac/projects/share/static/cgi-bin/trac.wsgi", line 30, in application, referer: http://localhost/ Sep 18 16:36:07 neon httpd: [Mon Sep 18 16:36:07.686650 2017] [:error] [pid 17696] [client 156.68.64.176:54205] from trac.web.main import dispatch_request, referer: http://localhost/ Sep 18 16:36:07 neon httpd: [Mon Sep 18 16:36:07.686680 2017] [:error] [pid 17696] [client 156.68.64.176:54205] ImportError: No module named trac.web. main, referer: http://localhost/ -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
