Opened 16 years ago
Closed 16 years ago
#4218 closed defect (invalid)
error in depgraph when apache encoding set to utf8
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | high | Component: | MasterTicketsPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
This is the error that appears on the python traceback:
Python Traceback Most recent call last:
- File "/tmp/TracMasterTickets-2.1.3-py2.4.egg-tmp/mastertickets/templates/depgraph.html", line 22, in <Expression u"Markup(graph_render('cmapx').decode('utf8'))">
Code fragment:
- <div id="content">
- <h1>Dependency Graph for Ticket #$tkt.id</h1>
- <img src="${href.depgraph(tkt.id, 'depgraph.png')}"
- alt="Dependency graph" usemap="${(not use_gs) and '#graph' or None}" />
- <py:if test="not use_gs">
- ${Markup(graph_render('cmapx').decode('utf8'))}
- </py:if>
- </div>
- </body>
- </html>
- File "/usr/lib/python2.4/site-packages/trac/util/compat.py", line 133, in newfunc
Code fragment:
- try:
- from functools import partial
- except ImportError:
- def partial(func_, *args, kwargs):
- def newfunc(*fargs, fkwargs):
- return func_(*(args + fargs), dict(kwargs, fkwargs))
- newfunc.func = func_
- newfunc.args = args
- newfunc.keywords = kwargs
- try:
- newfunc.name = func_.name
- File "build/bdist.linux-i686/egg/mastertickets/graphviz.py", line 129, in render Local variables: Name Value dot_path u'dot' format 'cmapx' self <mastertickets.graphviz.Graph object at 0xb40a0fac>
- File "subprocess.py", line 543, in init Local variables: Name Value args [u'dot', '-Tcmapx'] bufsize 0 c2pread 65 c2pwrite 66 close_fds False creationflags 0 cwd None env None errread None errwrite None executable None p2cread 63 p2cwrite 64 preexec_fn None self <subprocess.Popen object at 0xb3e609cc> shell False startupinfo None stderr None stdin -1 stdout -1 universal_newlines False
- File "subprocess.py", line 975, in _execute_child Local variables: Name Value args [u'dot', '-Tcmapx'] c2pread 65 c2pwrite 66 child_exception <exceptions.OSError instance at 0xb3e609ec> close_fds False creationflags 0 cwd None data '(iexceptions\nOSError\np0\n(dp1\nS\'errno\'\np2\nI2\nsS\'args\'\np3\n(I2\n ... env None errpipe_read 67 errpipe_write 68 errread None errwrite None executable u'dot' p2cread 63 p2cwrite 64 preexec_fn None self <subprocess.Popen object at 0xb3e609cc> shell False startupinfo None universal_newlines False
File "/tmp/TracMasterTickets-2.1.3-py2.4.egg-tmp/mastertickets/templates/depgraph.html", line 22, in <Expression u"Markup(graph_render('cmapx').decode('utf8'))">
${Markup(graph_render('cmapx').decode('utf8'))}
File "/usr/lib/python2.4/site-packages/trac/util/compat.py", line 133, in newfunc
return func_(*(args + fargs), dict(kwargs, fkwargs))
File "build/bdist.linux-i686/egg/mastertickets/graphviz.py", line 129, in renderFile "subprocess.py", line 543, in initFile "subprocess.py", line 975, in _execute_child
Attachments (1)
Change History (2)
Changed 16 years ago by
Attachment: | bug_mastertickets.png added |
---|
comment:1 Changed 16 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
dot
is not installed. Please install it from http://www.graphviz.org/ on Ubuntu you can run sudo apt-get install graphviz
bug for the ticket 4218