Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

TaskListPlugin, error while enabling

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


gabriel.scolan at gmx

May 1, 2008, 7:56 AM

Post #1 of 8 (128 views)
Permalink
TaskListPlugin, error while enabling

Hi all,

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 Genshi 0.5 from trunk -r847

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.* = disabled

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


any idea ?

thanks

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


pacopablo at pacopablo

May 1, 2008, 8:00 AM

Post #2 of 8 (121 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

Gab wrote:
> [components]
> tasklist.* = disabled

Might want to try using:

[components]
tasklist.* = enabled

Otherwise you're telling trac that you don't want to use tasklist.

-John

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


gabriel.scolan at gmx

May 1, 2008, 8:33 AM

Post #3 of 8 (121 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

Hi John,

it is when I change from disabled to enabled that the message raised.

gabriel

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


pacopablo at pacopablo

May 1, 2008, 9:00 AM

Post #4 of 8 (121 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

Gab wrote:
> it is when I change from disabled to enabled that the message raised.

Please open a ticket on trac-hacks.org [1] and include the traceback,
along with versions for trac, genshi, and setuptools and I'll try to
take a look at it. Thanks.

-John

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


gabriel.scolan at gmx

May 1, 2008, 9:27 AM

Post #5 of 8 (121 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

Ticket 2978 is open.
- gabriel

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


gabriel.scolan at gmx

May 10, 2008, 4:53 AM

Post #6 of 8 (84 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

The resolution on changeset 3627 works, no more error while enabling.
However, the next step failed with the following error:

2008-05-10 13:47:26,717 Trac[main] DEBUG: Dispatching <Request "GET u'/
tasklist'">
2008-05-10 13:47:26,733 Trac[main] DEBUG: TasklistPlugin: Using
default query: 'status!=closed&amp;owner=toto'
2008-05-10 13:47:26,750 Trac[session] DEBUG: Retrieving session for ID
u'toto'
2008-05-10 13:47:26,765 Trac[main] ERROR: not all arguments converted
during string formatting
Traceback (most recent call last):
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\web\main.py", line 417, in _dispatch_request
dispatcher.dispatch(req)
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\web\main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "build\bdist.win32\egg\tasklist\main.py", line 162, in
process_request
template, data, mime_type = self.display_html(req, query)
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\ticket\query.py", line 858, in display_html
tickets = query.execute(req, db)
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\ticket\query.py", line 259, in execute
self.num_items = self._count(sql, args, db)
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\ticket\query.py", line 244, in _count
cursor.execute(count_sql, args);
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\db\util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
\db\sqlite_backend.py", line 56, in execute
sql = sql % (('?',) * len(args))
TypeError: not all arguments converted during string formatting

any idea ?

thanks

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


cathy.talman at gmail

May 12, 2008, 2:55 AM

Post #7 of 8 (78 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

On May 10, 6:53 am, Gab <gabriel.sco...@gmx.net> wrote:
> The resolution on changeset 3627 works, no more error while enabling.
> However, the next step failed with the following error:
>
> 2008-05-10 13:47:26,717 Trac[main] DEBUG: Dispatching <Request "GET u'/
> tasklist'">
> 2008-05-10 13:47:26,733 Trac[main] DEBUG: TasklistPlugin: Using
> default query: 'status!=closed&amp;owner=toto'
> 2008-05-10 13:47:26,750 Trac[session] DEBUG: Retrieving session for ID
> u'toto'
> 2008-05-10 13:47:26,765 Trac[main] ERROR: not all arguments converted
> during string formatting
> Traceback (most recent call last):
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \web\main.py", line 417, in _dispatch_request
> dispatcher.dispatch(req)
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \web\main.py", line 197, in dispatch
> resp = chosen_handler.process_request(req)
> File "build\bdist.win32\egg\tasklist\main.py", line 162, in
> process_request
> template, data, mime_type = self.display_html(req, query)
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \ticket\query.py", line 858, in display_html
> tickets = query.execute(req, db)
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \ticket\query.py", line 259, in execute
> self.num_items = self._count(sql, args, db)
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \ticket\query.py", line 244, in _count
> cursor.execute(count_sql, args);
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \db\util.py", line 50, in execute
> return self.cursor.execute(sql_escape_percent(sql), args)
> File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> \db\sqlite_backend.py", line 56, in execute
> sql = sql % (('?',) * len(args))
> TypeError: not all arguments converted during string formatting
>
> any idea ?
>
> thanks
>
> gabriel


I don't have a fix but a workaround - drop the tasklist default_query
defined in trac.ini. There seems to be some parsing errors causing
the SQL statement to be invalid. I'll open a trac ticket. Hope this
works for you.

Cathy

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


cathy.talman at gmail

May 12, 2008, 3:11 AM

Post #8 of 8 (78 views)
Permalink
Re: TaskListPlugin, error while enabling [In reply to]

On May 12, 4:55 am, CM <cathy.tal...@gmail.com> wrote:
> On May 10, 6:53 am, Gab <gabriel.sco...@gmx.net> wrote:
>
>
>
> > The resolution on changeset 3627 works, no more error while enabling.
> > However, the next step failed with the following error:
>
> > 2008-05-10 13:47:26,717 Trac[main] DEBUG: Dispatching <Request "GET u'/
> > tasklist'">
> > 2008-05-10 13:47:26,733 Trac[main] DEBUG: TasklistPlugin: Using
> > default query: 'status!=closed&amp;owner=toto'
> > 2008-05-10 13:47:26,750 Trac[session] DEBUG: Retrieving session for ID
> > u'toto'
> > 2008-05-10 13:47:26,765 Trac[main] ERROR: not all arguments converted
> > during string formatting
> > Traceback (most recent call last):
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \web\main.py", line 417, in _dispatch_request
> > dispatcher.dispatch(req)
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \web\main.py", line 197, in dispatch
> > resp = chosen_handler.process_request(req)
> > File "build\bdist.win32\egg\tasklist\main.py", line 162, in
> > process_request
> > template, data, mime_type = self.display_html(req, query)
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \ticket\query.py", line 858, in display_html
> > tickets = query.execute(req, db)
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \ticket\query.py", line 259, in execute
> > self.num_items = self._count(sql, args, db)
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \ticket\query.py", line 244, in _count
> > cursor.execute(count_sql, args);
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \db\util.py", line 50, in execute
> > return self.cursor.execute(sql_escape_percent(sql), args)
> > File "c:\python25\lib\site-packages\Trac-0.12dev_r6942-py2.5.egg\trac
> > \db\sqlite_backend.py", line 56, in execute
> > sql = sql % (('?',) * len(args))
> > TypeError: not all arguments converted during string formatting
>
> > any idea ?
>
> > thanks
>
> > gabriel
>
> I don't have a fix but a workaround - drop the tasklist default_query
> defined in trac.ini. There seems to be some parsing errors causing
> the SQL statement to be invalid. I'll open a trac ticket. Hope this
> works for you.
>
> Cathy

Ack! Didn't get much further before hitting the same problem with a
different query.

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

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.