All of the sudden I'm getting following error while trying to access my 
TRAC instance:

/var/log/httpd/error_log

 mod_wsgi (pid=3441): Exception occurred processing WSGI script 
'/var/www/html/trac/dc/cgi-bin/trac.wsgi'.
 Traceback (most recent call last):
   File "/var/www/html/trac/dc/cgi-bin/trac.wsgi", line 30, in application
     from trac.web.main import dispatch_request
 ImportError: No module named trac.web.main


# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 (Maipo)
# uname -a
Linux 7repo2.uftwf.local 3.10.0-123.13.1.el7.x86_64 #1 SMP Tue Nov 4 
10:16:51 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
# rpm -q httpd python mod_wsgi
httpd-2.4.6-18.el7_0.x86_64
python-2.7.5-16.el7.x86_64
mod_wsgi-3.4-12.el7_0.x86_64
# ll /usr/lib/python2.7/site-packages/Trac-1.0.4-py2.7.egg 
-rw-r--r--. 1 root root 1987120 Feb  9 17:07 
/usr/lib/python2.7/site-packages/Trac-1.0.4-py2.7.egg
# cat /var/www/html/trac/dc/cgi-bin/trac.wsgi 
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C)2008-2009 Edgewall Software
# Copyright (C) 2008 Noah Kantrowitz <[email protected]>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.org/wiki/TracLicense.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://trac.edgewall.org/log/.
#
# Author: Noah Kantrowitz <[email protected]>
import os

def application(environ, start_request):
    if not 'trac.env_parent_dir' in environ:
        environ.setdefault('trac.env_path', '/var/www/html/trac/dc')
    if 'PYTHON_EGG_CACHE' in environ:
        os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']
    elif 'trac.env_path' in environ:
        os.environ['PYTHON_EGG_CACHE'] = \
            os.path.join(environ['trac.env_path'], '.egg-cache')
    elif 'trac.env_parent_dir' in environ:
        os.environ['PYTHON_EGG_CACHE'] = \
            os.path.join(environ['trac.env_parent_dir'], '.egg-cache')
    from trac.web.main import dispatch_request
    return dispatch_request(environ, start_request)
# 

I recently installed subversion-python binding, I really doubt that's what 
caused that but still..

Any ideas how to troubleshoot this?

-- 
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/d/optout.

Reply via email to