#3081 Agilo trac install
Closed: Fixed None Opened 12 years ago by shakthimaan.

Is it possible to provide Agilo for Trac?

http://agilosoftware.com/

The free/open source software version should be good enough.


Well, it would need to be packaged up in Fedora/EPEL first.

It looks like there was an attempt a while back, but the submittor moved on and withdrew the request.

https://bugzilla.redhat.com/show_bug.cgi?id=514452

Once it's packaged we would need to look at what kind of resources it would use, but it should be possible to add in.

ok, the review is done...

we need python-twill to go stable.
we need a trac-agilo-plugin official build made.

I did some testing here and it seemed to work fine. I'd be happy to get it installed on hosted after the above 2 items are done.

Sadly, I tried to install this today and it seems that it conflicts with the mastertickets plugin. ;(

Ticket links give:

{{{

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 440, in send_error
data, 'text/html')
File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 871, in render_template
stream.render(method, doctype=doctype, out=buffer)
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 183, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 58, in encode
for chunk in iterator:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 339, in call
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 826, in call
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 670, in call
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 771, in call
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 586, in call
for ev in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 984, in _strip_accesskeys
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 973, in _generate
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py", line 686, in _unmark
for mark, event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py", line 1145, in call
for mark, event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py", line 714, in call
for mark, event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/filters/transform.py", line 682, in _mark
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 378, in _match
ctxt, start=idx + 1, vars):
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 378, in _match
ctxt, start=idx + 1,
vars):
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 327, in _match
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/path.py", line 588, in _generate
subevent = next()
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 316, in _strip
event = next()
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten
for kind, data, pos in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/path.py", line 588, in _generate
subevent = next()
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
for event in stream:
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 316, in _strip
event = next()
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 565, in _flatten
result = _eval_expr(data, ctxt, vars)
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 277, in _eval_expr
retval = expr.evaluate(ctxt)
File "/usr/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py", line 178, in evaluate
return eval(self.code, _globals, {'data': data})
File "/usr/lib/python2.6/site-packages/trac/templates/error.html", line 165, in <Expression u'shorten_line(repr(value))'>
${shorten_line(repr(value))}
File "/usr/lib/python2.6/site-packages/mastertickets/model.py", line 118, in repr
(self.tkt.id, l(getattr(self, 'blocking', [])), l(getattr(self, 'blocked_by', [])))
AttributeError: 'TicketLinks' object has no attribute 'tkt'
}}}

we will need to figure out some way around this, as we have people using the mastertickets plugin. ;(

ok. I found a way around this:

I have disabled mastertickets in the global trac.ini.
I have not enabled agilo in the global trac.ini

So, projects can be free to load either one that they want. If they load both they will get tracebacks as above, but we can ask them not to do that. ;)

In the admin section at:

https://fedorahosted.org/fedora-electronic-lab/admin

I only see a agilo-general section under trac.ini. Is it enabled by default? I am not able to see any Agilo options in the trac instance.

I went to Administration -> Plugins and found Agilo 0.9.7. When, I tried to enable all the options, it returned the following error:

Error

TracError: The Trac Environment needs to be upgraded.

Run "trac-admin /srv/web/trac/projects/fedora-electronic-lab upgrade"

Sorry about that. Done.

It seems to be working now?

Sadly, I had to remove the plugin again.

It seems it breaks xmlrpc for all trac sites on the machine when installed. ;(

I am trying to see if there's a fix/workaround.

Looks like I never got a workaround here, and the agilo package is now orphaned, and you likely have moved on to some other solution for your needs. ;(

I'm going to close this now, but please ping me if there's anything we can do to assist further.

Login to comment on this ticket.

Metadata