Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2994 closed defect (fixed)

Fail to show all tickets dependency graph (asciiCrítico23ordinal not in range(128))

Reported by: deal.rafaeltrestini@… Owned by: ftiede
Priority: normal Component: TracTicketDepgraphPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Hi,

When I'm trying to create a graph with all tickets dependencies, the follow message is displayed:

Error: Macro DepGraph(None) failed

asciiCrítico23ordinal not in range(128)

In log, I have:

2008-05-06 12:46:01,942 Trac[formatter] ERROR: Macro DepGraph(None) failed
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 439, in _macro_formatter
    return macro.process(self.req, args, True)
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 112, in process
    text = self.processor(req, text)
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 100, in _macro_processor
    return self.macro_provider.render_macro(req, self.name, text)
  File "build/bdist.linux-i686/egg/depgraph/depgraph.py", line 156, in render_macro
  File "build/bdist.linux-i686/egg/depgraph/depgraph.py", line 75, in _depgraph_all
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 2: ordinal not in range(128)

Looking at log message and configuration of trac, I've verified that the mistake was in a name used for Severity field (the name used was Crítico). The error message said it, but not in clarified form.

My suggestion is to leave this "error" message more explicit.

Regards

Rafael

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by ftiede

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from enhancement to defect

This is a defect in decoding a ticket's severity to colorize the graph nodes. This is fixed in rev [3626]. Unfortunately so far colorizing the graph will not work if non-standard severities are used.

comment:2 Changed 6 years ago by ftiede

(In [4766]) Now using trac's internal priority enum to colorize the nodes. As of now only first five priorities are used.
Hopefully this also works with non-ascii characters in a priority's name, see #2994.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.