Hi,
some people seem to have had this issue, but i couldn't find a
solution for it.

My setup is:

- i installed virtualenv and pip on an ubuntu server
- created a new virtual environment (python 2.5)
- there i installed babel, genshi and trac in this order
- then i created a trac-environment
- integrated the thing in my apache using mod_wsgi

The result is:

- tracd runs fine
- when visiting from apache, i get the error "AttributeError: Cannot
find an implementation of the "IRequestHandler" interface named
"WikiModule"."

On this list i found someone having the same problem, kind of a
solution was to copy lots of imports of trac modules into the wsgi
script. I tried this to, and it did have some effect (the error
message disappears, and trac works somehow), but still the
installation does not work as expected (plugins do not work at all).

my wsgi-handler looks like:
-----------------------------------
import os
import sys
import site

site.addsitedir('/.../trac/py-env/lib/python2.5/site-packages')

os.environ['TRAC_ENV'] = '/.../trac/trac-env'
os.environ['PYTHON_EGG_CACHE'] = '/.../trac/trac-env/eggs'

if False: # when i switch here to True, things work somehow, but not
correctly
        from trac.db import sqlite_backend
        from trac.mimeview import rst
        from trac.ticket import query
        from trac.ticket import report
        from trac.versioncontrol import svn_fs
        from trac.web import auth
        from trac.wiki import macros

        from trac import about
        from trac import attachment

        from trac.admin import web_ui
        from trac.prefs import web_ui
        from trac.search import web_ui
        from trac.ticket import web_ui
        from trac.timeline import web_ui
        from trac.versioncontrol import web_ui
        from trac.wiki import web_ui
        from acct_mgr.web_ui import *


import trac.web.main
application = trac.web.main.dispatch_request
---------------------------------------

my httpd.conf entry looks like:
---------------------------------------
<VirtualHost ...:80>
        ServerName   ...:80
        Alias /chrome/site /.../trac/trac-resources/site
        Alias /chrome/common /.../trac/trac-resources/common
        WSGIScriptAlias / /.../trac/handler.wsgi

        <Directory /.../trac/trac-resources>
                Order allow,deny
                Allow from all
        </Directory>
        <Directory /.../trac/py-env>
                WSGIApplicationGroup %{GLOBAL}
                Order deny,allow
                Allow from all
        </Directory>
        <Location '/'>
                AuthType Basic
                AuthName "Trac"
                AuthUserFile /.../trac/trac-env/htpasswd
                Require valid-user
        </Location>
</VirtualHost>
-------------------------------------

at the moments everything is owned by www-data, the user my apache is
running with.

Does anybody have an idea how to get over this problem? What
information do i have to provide, to get closer to the root of the
problem?

Kind regards,
Janosch

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to