Opened 9 years ago

Closed 6 years ago

#2978 closed defect (worksforme)

Reported by: Owned by: gabriel.scolan@… John Hampton normal TaskListPlugin normal zeph.gillen@… 0.11

I've tried to install the TaskListPlugin (see http://trac-hacks.org/wiki/TaskListPlugin) but I've got the following error message while enabling it:

Traceback (most recent call last):
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\web\api.py", line 339, in send_error
'text/html')
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\web\chrome.py", line 683, in render_template
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\web\chrome.py", line 406, in get_all_templates_dirs
dirs += provider.get_templates_dirs()
get_templates_dirs
from pkg_resources import resource_filename


I'm using:

• Trac -r6942
• Genshi 0.5 from trunk -r847
• setup tools setuptools-0.6c7-py2.5

I've configured the ini file as follow:

[tasklist]
default_cols = summary,priority
default_query = 'status!=closed&amp;owner=$USER' default_anonymous_query = 'status!=closed&amp;cc~=$USER'

[components]

[ticket-custom]
action_item = text
action_item.label = Action Item


comment:1 Changed 9 years ago by anonymous

Trac Release: 0.10 → 0.11

comment:2 Changed 9 years ago by John Hampton

Description: modified (diff) new → assigned

Cleaned up description formatting

comment:4 Changed 9 years ago by John Hampton

Please try r3627 of trunk. I can replicate the issue you're having, but this may fix it.

comment:5 Changed 9 years ago by John Hampton

I should have said that I can't replicate the error. Anyway, a possibly related ticket is #3018

comment:6 Changed 9 years ago by kate@…

I have a little more info and a solution that worked for me. After enabling the plugin, I got the same error.

Creating [tasklist] and [ticket-custom] sections in trac.ini file fixed the problem.

comment:7 in reply to:  description Changed 6 years ago by Ryan J Ollos

I've configured the ini file as follow:

You should not put single quotes around default_query and default_anonymous_query when defining them in the [tasklist] section of trac.ini. For that matter though, you don't need to define the [tasklist] section since the defaults will be used.

That said, I get a different error than you when I add the single quotes, so you might have another issue as well.

comment:8 Changed 6 years ago by Ryan J Ollos

Resolution: → worksforme assigned → closed

Please test again with Trac >= 0.12 and the latest version of the TaskListPlugin trunk, and reopen if you continue to have issues. See also #6336.

Modify Ticket

Change Properties