Opened 14 years ago

Last modified 11 years ago

#6904 closed defect

Genshi UnicodeDecodeError error while rendering template (unknown template location) — at Version 4

Reported by: thuffir Owned by: Ryan J Ollos
Priority: highest Component: TicketChartsMacro
Severity: blocker Keywords:
Cc: Ivanelson Nunes Trac Release: 0.12

Description (last modified by Ryan J Ollos)

I have managed to install the plugin, but every time I try to call the macro I get the following error:

Trac Error

Genshi UnicodeDecodeError error while rendering template (unknown template location)

Any Idea?

Change History (4)

comment:1 Changed 13 years ago by anonymous

Severity: normalblocker

same here...since thuffir is waiting for 8 months! I guess theres no hope of a fix either.

2010-11-25 16:35:47,252 Trac[formatter] DEBUG: Executing Wiki macro TicketChart by provider <TicketCharts.TicketChart object at 0x0344E910>
2010-11-25 16:35:47,273 Trac[formatter] ERROR: Macro TicketChart(type = pie, factor = milestone) failed: 
Traceback (most recent call last):
  File "C:\Program Files\BitNami Trac Stack\trac\Lib\site-packages\Trac-0.11.6-py2.5.egg\trac\wiki\formatter.py", line 484, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "C:\Program Files\BitNami Trac Stack\trac\Lib\site-packages\Trac-0.11.6-py2.5.egg\trac\wiki\formatter.py", line 180, in process
    text = self.processor(text)
  File "C:\Program Files\BitNami Trac Stack\trac\Lib\site-packages\Trac-0.11.6-py2.5.egg\trac\wiki\formatter.py", line 167, in _macro_processor
    text)
  File "c:\program files\bitnami trac stack\python\lib\site-packages\TicketCharts.py", line 460, in expand_macro
    return create_graph(formatter.req, formatter.env, args)
  File "c:\program files\bitnami trac stack\python\lib\site-packages\TicketCharts.py", line 404, in create_graph
    chart, chart_div_id, additional_html = chart_creation[args['type']](env, db, args)
  File "c:\program files\bitnami trac stack\python\lib\site-packages\TicketCharts.py", line 391, in pie_graph
    return _pie_graph(env, db, args['factor'], query = args.get('query'), title = args.get('title'))
  File "c:\program files\bitnami trac stack\python\lib\site-packages\TicketCharts.py", line 386, in _pie_graph
    on_click_html = _create_pie_graph_on_click_html(env, ticket_stats, factor, query, on_click_function_name)
  File "c:\program files\bitnami trac stack\python\lib\site-packages\TicketCharts.py", line 355, in _create_pie_graph_on_click_html
    'array_name' : array_name,
  File "c:\program files\bitnami trac stack\python\lib\site-packages\TicketCharts.py", line 142, in _safe_evaluate
    return string.Template(string_object).safe_substitute(mapping, **kw)
  File "C:\PROGRA~1\BITNAM~1\apache2\bin\lib\string.py", line 203, in safe_substitute
    return self.pattern.sub(convert, self.template)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdb in position 27: ordinal not in range(128)
2010-11-25 16:35:47,275 Trac[main] WARNING: HTTPInternalError: 500 Trac Error (Genshi UnicodeDecodeError error while rendering template (unknown template location))

comment:2 Changed 13 years ago by anonymous

Priority: normalhighest

comment:3 Changed 11 years ago by Ryan J Ollos

Owner: changed from aviram to Ryan J Ollos
Status: newassigned

comment:4 Changed 11 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.