[prev in list] [next in list] [prev in thread] [next in thread]
List: trac
Subject: Re: [Trac] Trac 0.11.5 - Failure - Apache with mod_wsgi
From: Noah Kantrowitz <noah () coderanger ! net>
Date: 2009-12-27 19:05:49
Message-ID: B1785C82-FB88-44CB-B822-7555484AC8E7 () coderanger ! net
[Download RAW message or body]
As the error message says, there is a problem with your pydelicious
egg. Try reinstalling that library.
--Noah
On Dec 25, 2009, at 5:58 PM, Kenny Meyer wrote:
> Hello Mailing-List,
>
> I'm trying Trac for the *first time* (but configuring it now for the
> 100th time) on my Ubuntu Linux box. My problem is:
>
> I'm setting up Apache 2.2 for usage with Trac, using mod_wsgi as
> `Middleware application`.
>
> Now when I navigate to //localhost/trac , Apache returns a 500 error
> page.
>
> Can you please help me? I'm not getting smart out of the error. Just
> give me some hints.
>
> This is the output from the apache.log:
>
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] mod_wsgi (pid=1327):
> Exception occurred processing WSGI script '/opt/trac/htdocs/site/
> trac.wsgi'.
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] Traceback (most recent
> call last):
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/opt/trac/
> htdocs/site/trac.wsgi", line 33, in application
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] from trac.web.main
> import dispatch_request
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/trac/__init__.py", line 14, in <module>
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] __version__ =
> __import__('pkg_resources').get_distribution('Trac').version
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 2582, in <module>
> [Fri Dec 25 22:36:08 2009] [error] [client ::1]
> add_activation_listener(lambda dist: dist.activate())
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 640, in subscribe
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] callback(dist)
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 2582, in <lambda>
> [Fri Dec 25 22:36:08 2009] [error] [client ::1]
> add_activation_listener(lambda dist: dist.activate())
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 2128, in activate
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] self.insert_on
> (path)
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 2224, in insert_on
> [Fri Dec 25 22:36:08 2009] [error] [client ::1]
> self.check_version_conflict()
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 2263, in
> check_version_conflict
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] for modname in
> self._get_metadata('top_level.txt'):
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 2122, in _get_metadata
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] for line in
> self.get_metadata_lines(name):
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 1140, in
> get_metadata_lines
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] return yield_lines
> (self.get_metadata(name))
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 1137, in get_metadata
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] return self._get
> (self._fn(self.egg_info,name))
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] File "/usr/lib/
> python2.6/dist-packages/pkg_resources.py", line 1197, in _get
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] return
> self.loader.get_data(path)
> [Fri Dec 25 22:36:08 2009] [error] [client ::1] IOError: zipimport:
> can not open file /usr/local/lib/python2.6/dist-packages/
> pydelicious-0.5.3-py2.6.egg
>
> My /etc/apache2/httpd.conf:
>
> WSGIScriptAlias /trac /opt/trac/htdocs/site/trac.wsgi
>
> <Directory /opt/trac/htdocs/site>
> WSGIApplicationGroup %{GLOBAL}
> Order deny,allow
> Allow from all
> </Directory>
>
> This is how my /opt/trac/htdocs/site/trac.wsgi looks:
>
> import os
>
> os.environ['TRAC_ENV_PARENT_DIR'] = '/opt/trac/projects'
> os.environ['PYTHON_EGG_CACHE'] = '/opt/trac/htdocs/site/eggs'
>
> def application(environ, start_request):
> if not 'trac.env_path_parent_dir' in environ:
> environ.setdefault('trac.env_path', '/opt/trac/projects/my-
> project')
> 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_path_parent_dir' in environ:
> os.environ['PYTHON_EGG_CACHE'] = os.path.join(environ
> ['trac.env_path_parent_dir'],
> '.egg-cache')
> from trac.web.main import dispatch_request
> return dispatch_request(environ, start_request)
>
> A tree view of /opt/trac:
>
> http://pastebin.com/f2556c2cf
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "Trac Users" group.
> To post to this group, send email to trac-users@googlegroups.com.
> To unsubscribe from this group, send email to trac-users+unsubscribe@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
> .
>
>
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to trac-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic