Ticket #2978 (closed defect: worksforme)

Opened 4 years ago

Last modified 1 year ago

TaskListPlugin error while enabling it

Reported by: gabriel.scolan@gmx.net Assigned to: pacopablo
Priority: normal Component: TaskListPlugin
Severity: normal Keywords:
Cc: zeph.gillen@asu.edu Trac Release: 0.11

Description (Last modified by pacopablo)

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
    template = self.load_template(filename, method=method)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\web\chrome.py", line 659, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  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()
  File "build\bdist.win32\egg\tasklist\main.py", line 200, in
get_templates_dirs
    from pkg_resources import resource_filename
SystemError: Parent module 'tasklist' not loaded

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]
tasklist_field = action_item
default_cols = summary,priority
default_query = 'status!=closed&owner=$USER'
default_anonymous_query = 'status!=closed&cc~=$USER'

[components]
tasklist.* = enabled

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

Attachments

Change History

05/01/08 18:33:52 changed by anonymous

  • release changed from 0.10 to 0.11.

05/01/08 18:44:25 changed by pacopablo

  • status changed from new to assigned.
  • description changed.

Cleaned up description formatting

05/06/08 23:51:39 changed by anonymous

  • cc set to zeph.gillen@asu.edu.

05/07/08 00:55:23 changed by pacopablo

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

05/12/08 19:55:29 changed by pacopablo

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

07/31/08 06:37:12 changed by kate@yoak.com

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.

(in reply to: ↑ description ) 11/19/10 21:40:14 changed by rjollos

Replying to gabriel.scolan@gmx.net:

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.

12/16/10 00:58:02 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to worksforme.

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.


Add/Change #2978 (TaskListPlugin error while enabling it)




Change Properties
Action