AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "TracForgeIndexModule"

81 views
Skip to first unread message

Matheus Santana

unread,
Nov 13, 2013, 12:21:11 PM11/13/13
to trac-...@googlegroups.com
Hi guys,

I need to migrate a trac enviroment that I inherit from version 0.12dev to a new server with 0.12.5. The situation is like this:

*We have serveral projects and there is a master trac project to allow the multiple repositories feature - all in the following path: /var/repositories/trac

*Each time the user access http://192.168.1.110/projects/clientA for instance, TRAC should load the apropriate clientA files(/var/repositories/trac/clientA/conf/trac.ini for example).


The problem is that the new 0.12.5 installation fails with:

AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "TracForgeIndexModule".  Please update the option trac.default_handler in trac.ini.

Python Traceback
Most recent call last:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 522, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 204, in dispatch
    chosen_handler = self.default_handler
  File "/usr/lib/python2.7/dist-packages/trac/config.py", line 648, in __get__
    self.section, self.name))
AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "TracForgeIndexModule".  Please update the option trac.default_handler in trac.ini.

System Information:
Trac     0.12.5
Babel     0.9.6
Docutils     0.8.1
Genshi     0.6 (with speedups)
mod_python     3.3.1
Pygments     1.5
pysqlite     2.6.0
Python     2.7.3 (default, Jan 2 2013, 14:09:21) [GCC 4.7.2]
pytz     2012c
setuptools     0.6
SQLite     3.7.13
Subversion     1.8.4 (r1534716)




I have tried to install tracforge from http://trac-hacks.org/wiki/TracForgePlugin and got the following message:

~/tracforgeplugin/0.11# python setup.py
DO NOT USE THIS CODE YET.

I think that there is a 0.11 requirement...


Someone have any idea what is the problem? I really need some help here :///.

Thanks!

RjOllos

unread,
Nov 13, 2013, 5:06:23 PM11/13/13
to trac-...@googlegroups.com
You probably want to avoid using TracForgePlugin, and set default_handler back to its default. Edit the [trac] section of trac.ini with:

default_handler = WikiModule

 

Matheus Santana

unread,
Nov 14, 2013, 5:23:26 AM11/14/13
to trac-...@googlegroups.com
Hi RjOllos,

the problem is that i really need this multi project feature, unfortunately is not up to me to decide this(stupid guy made this configuration and now - 5 years later - my boss wants to upgrade to newer versions).

I dont know what else to do ://

Regards,
Matheus

Matheus Santana

unread,
Nov 14, 2013, 7:09:49 AM11/14/13
to trac-...@googlegroups.com
Well... I found some commands in a old history log file on the old server and turns out to be what i needed. Here is what I did:

After download tracforgeplugin.zip from (http://trac-hacks.org/changeset/latest/tracforgeplugin?old_path=/&filename=tracforgeplugin&format=zip)

unzip tracforgeplugin.zip
cd tracforgeplugin/branches/bewst/0.11-clearsilver

python setup.py install

chmod -R g+rws /var/repositories/

apt-get install libapache2-mod-python
a2enmod mod_python
apt-get install python-clearsilver

service apache2 restart

May this helps someone in the future.

Regards,
Matheus
Reply all
Reply to author
Forward
0 new messages