id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
8859	[Patch] ERROR: Macro TracJSGanttChart(milestone=...) failed	bobrien@newtonrobotics.com	ChrisNelson	Running trac 0.12 with the latest version of the TracJsGanttPlugin (installed using easy_install this morning).  Regardless of whether any other coordinating plugins are installed or not (such as mastertickets, subtickets, timingandestimation), I cannot make a gantt chart display from a very simple existing milestone in Trac (10 tickets, 2 closed, backend repository is Mercurial).  \r\n\r\nCurrently, only `tracjsgantt.*` is enabled in my `trac.ini` file, and no `[trac-jsgantt]` section is defined (all commented out) - see Debug output below.  If I try adding back certain fields (as outlined on the TracJSGanttPlugin wiki page), I get different, but similar, errors - issues like: \r\n\r\n`TypeError: strptime() argument 1 must be string, not int.`\r\n\r\nand\r\n\r\n`KeyError: u'userstart'`\r\n\r\nI'm just trying to display a Gantt chart, nothing fancy (yet).  Looking through the other active tickets there appears to be some question whether this plugin works with Trac 0.12.  Is that accurate?\r\n\r\nFrom the trac.log file in DEBUG Mode:\r\n{{{\r\n03,713 Trac[query] DEBUG: Query SQL: SELECT t.id AS id,t.description AS description,t.owner AS owner,t.type AS type,t.status AS status,t.summary \r\nAS summary,t.milestone AS milestone,t.priority AS priority,t.time AS time,t.changetime AS changetime,priority.value AS priority_value\r\nFROM ticket AS t\r\n  LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND priority.name=priority)\r\nWHERE ((COALESCE(t.milestone,'')=u'FME Cart Completion'))\r\nORDER BY COALESCE(priority.value,'')='',CAST(priority.value AS integer),t.id\r\n2011-05-31 15:06:03,715 Trac[formatter] ERROR: Macro TracJSGanttChart(milestone=FME Cart Completion) failed: \r\nTraceback (most recent call last):\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 710, in _macro_formatter\r\n    return macro.process(args, in_paragraph=True)\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 304, in process\r\n    text = self.processor(text)\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 291, in _macro_processor\r\n    text)\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac_jsGantt-0.5-py2.6.egg/tracjsgantt/tracjsgantt.py", line 733, in expand_macro\r\n    tasks = self._add_tasks(options)\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac_jsGantt-0.5-py2.6.egg/tracjsgantt/tracjsgantt.py", line 706, in _add_tasks\r\n    self._schedule_tasks()\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac_jsGantt-0.5-py2.6.egg/tracjsgantt/tracjsgantt.py", line 421, in _schedule_tasks\r\n    t['calc_start'] = _start(t)\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac_jsGantt-0.5-py2.6.egg/tracjsgantt/tracjsgantt.py", line 381, in _start\r\n    finish = datetime.strptime(_finish(ticket), self.pyDateFormat)\r\n  File "/usr/local/lib/python2.6/dist-packages/Trac_jsGantt-0.5-py2.6.egg/tracjsgantt/tracjsgantt.py", line 401, in _finish\r\n    elif ticket[self.fields['succ']] != []:\r\n}}}	defect	closed	high	TracJsGanttPlugin	normal	duplicate			0.12
