I installed Trac 1.0 on a RHEL6.4 system by following the instructions at 
http://trac.edgewall.org/wiki/TracInstall

Basically, I used 
    easy_install Trac==1.0

I created my environment, after which tracd served the project successfully.

I then setup Apache to use wsgi using the recommended trac.wsgi script 
(generated via "trac-admin <env> deploy <dir>".  The actual wsgi is 
at http://pastebin.com/UKhgcCNf 


When I tried going to http://localhost/trac, I got the following errors:

[Fri Sep 27 17:38:54 2013] [error] [client 127.0.0.1] mod_wsgi (pid=15767): 
Exception occurred processing WSGI script '/opt/trac/cgi-bin/trac.wsgi'.
[Fri Sep 27 17:38:54 2013] [error] [client 127.0.0.1] Traceback (most 
recent call last):
[Fri Sep 27 17:38:54 2013] [error] [client 127.0.0.1]   File 
"/opt/trac/cgi-bin/trac.wsgi", line 30, in application
[Fri Sep 27 17:38:54 2013] [error] [client 127.0.0.1]     from 
trac.web.main import dispatch_request
[Fri Sep 27 17:38:54 2013] [error] [client 127.0.0.1] ImportError: No 
module named trac.web.main
[Fri Sep 27 17:39:04 2013] [error] [client 127.0.0.1] mod_wsgi (pid=15768): 
Exception occurred processing WSGI script '/opt/trac/cgi-bin/trac.wsgi'.
[Fri Sep 27 17:39:04 2013] [error] [client 127.0.0.1] Traceback (most 
recent call last):
[Fri Sep 27 17:39:04 2013] [error] [client 127.0.0.1]   File 
"/opt/trac/cgi-bin/trac.wsgi", line 30, in application
[Fri Sep 27 17:39:04 2013] [error] [client 127.0.0.1]     from 
trac.web.main import dispatch_request
[Fri Sep 27 17:39:04 2013] [error] [client 127.0.0.1] ImportError: No 
module named trac.web.main

I found that the only way I could get trac to work was to create the 
following link:
    ln -s /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac 
/usr/lib/python2.6/site-packages/trac

Did I do something wrong ; i.e. shouldn't it work without me having to 
create that link?

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to