Modify

Opened 6 years ago

Closed 6 years ago

#4218 closed defect (invalid)

error in depgraph when apache encoding set to utf8

Reported by: villalvilla@… Owned by: coderanger
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:
    1. <div id="content">
    2. <h1>Dependency Graph for Ticket #$tkt.id</h1>
    3. <img src="${href.depgraph(tkt.id, 'depgraph.png')}"
    4. alt="Dependency graph" usemap="${(not use_gs) and '#graph' or None}" />
    5. <py:if test="not use_gs">
    6. ${Markup(graph_render('cmapx').decode('utf8'))}
    7. </py:if>
    8. </div>
    9. </body>
    10. </html>
    Local variables: Name Value data [{'abs_url_of': <function get_abs_url at 0xb3e5f224>, 'all': <function all ...
  • File "/usr/lib/python2.4/site-packages/trac/util/compat.py", line 133, in newfunc Code fragment:
    1. try:
    2. from functools import partial
    3. except ImportError:
    4. def partial(func_, *args, kwargs):
    5. def newfunc(*fargs, fkwargs):
    6. return func_(*(args + fargs), dict(kwargs, fkwargs))
    7. newfunc.func = func_
    8. newfunc.args = args
    9. newfunc.keywords = kwargs
    10. try:
    11. newfunc.name = func_.name
    Local variables: Name Value args (u'dot',) fargs ('cmapx',) fkwargs {} func_ <bound method Graph.render of <mastertickets.graphviz.Graph object at ... kwargs {}
  • 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)

bug_mastertickets.png (360.2 KB) - added by villalvilla@… 6 years ago.
bug for the ticket 4218

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by villalvilla@…

bug for the ticket 4218

comment:1 Changed 6 years ago by nasrullah@…

  • Resolution set to invalid
  • Status changed from new to closed

dot is not installed. Please install it from http://www.graphviz.org/ on Ubuntu you can run sudo apt-get install graphviz

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.