Modify

Opened 17 years ago

Closed 17 years ago

Last modified 14 years ago

#3005 closed defect (invalid)

File not found error trying to see depgraph

Reported by: eduardo.ulysses@… Owned by: Noah Kantrowitz
Priority: normal Component: MasterTicketsPlugin
Severity: critical Keywords: graphviz
Cc: Trac Release: 0.11

Description

I have a ticket with dependencies (ticket 70 is blocked by ticket 6). When I click on depgraph of ticket 70 I see

Trac detected an internal error:

WindowsError: [Error 2] El sistema no puede hallar el archivo especificado

File "C:\Documents and Settings\Administrador\Datos de programa\Python-Eggs\tracmastertickets-2.1.1-py2.5.egg-tmp\mastertickets\templates\depgraph.html", line 22, in <Expression u"Markup(graph_render('cmapx'))">

${Markup(graph_render('cmapx'))}

File "build\bdist.win32\egg\mastertickets\graphviz.py", line 128, in renderFile "C:\Python25\lib\subprocess.py", line 593, in init

errread, errwrite)

File "C:\Python25\lib\subprocess.py", line 793, in _execute_child

startupinfo)

I have both installed graphviz and graphviz plugin, and I think i have configured it properly.

The complete stack trace in the log is

18:44:53 Trac[main] ERROR: [Error 2] El sistema no puede hallar el archivo especificado Traceback (most recent call last):

File "c:\python25\lib\site-packages\Trac-0.11rc1-py2.5.egg\trac\web\main.py", line 417, in _dispatch_request

dispatcher.dispatch(req)

File "c:\python25\lib\site-packages\Trac-0.11rc1-py2.5.egg\trac\web\main.py", line 219, in dispatch

data, content_type)

File "c:\python25\lib\site-packages\Trac-0.11rc1-py2.5.egg\trac\web\chrome.py", line 726, in render_template

stream.render(method, doctype=doctype, out=buffer)

File "build\bdist.win32\egg\genshi\core.py", line 179, in render

return encode(generator, method=method, encoding=encoding, out=out)

File "build\bdist.win32\egg\genshi\output.py", line 61, in encode

for chunk in iterator:

File "build\bdist.win32\egg\genshi\output.py", line 302, in call

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\output.py", line 727, in call

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\output.py", line 566, in call

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\output.py", line 672, in call

for kind, data, pos in chain(stream, [(None, None, None)]):

File "build\bdist.win32\egg\genshi\output.py", line 506, in call

for ev in stream:

File "build\bdist.win32\egg\genshi\core.py", line 280, in _ensure

for event in stream:

File "build\bdist.win32\egg\genshi\core.py", line 280, in _ensure

for event in stream:

File "c:\python25\lib\site-packages\Trac-0.11rc1-py2.5.egg\trac\web\chrome.py", line 779, in _strip_accesskeys

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\core.py", line 280, in _ensure

for event in stream:

File "c:\python25\lib\site-packages\Trac-0.11rc1-py2.5.egg\trac\web\chrome.py", line 768, in _generate

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\core.py", line 280, in _ensure

for event in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 565, in _include

for event in stream:

File "build\bdist.win32\egg\genshi\template\markup.py", line 299, in _match

ctxt, match_templates[idx + 1:], vars):

File "build\bdist.win32\egg\genshi\template\markup.py", line 299, in _match

ctxt, match_templates[idx + 1:], vars):

File "build\bdist.win32\egg\genshi\template\markup.py", line 246, in _match

for event in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 539, in _exec

for event in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 529, in _eval

for event in substream:

File "build\bdist.win32\egg\genshi\template\base.py", line 492, in _eval

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 547, in _flatten

for event in stream:

File "build\bdist.win32\egg\genshi\core.py", line 280, in _ensure

for event in stream:

File "build\bdist.win32\egg\genshi\path.py", line 141, in _generate

subevent = stream.next()

File "build\bdist.win32\egg\genshi\template\base.py", line 565, in _include

for event in stream:

File "build\bdist.win32\egg\genshi\template\markup.py", line 235, in _strip

event = stream.next()

File "build\bdist.win32\egg\genshi\template\base.py", line 539, in _exec

for event in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 529, in _eval

for event in substream:

File "build\bdist.win32\egg\genshi\template\base.py", line 492, in _eval

for kind, data, pos in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 547, in _flatten

for event in stream:

File "build\bdist.win32\egg\genshi\core.py", line 280, in _ensure

for event in stream:

File "build\bdist.win32\egg\genshi\path.py", line 141, in _generate

subevent = stream.next()

File "build\bdist.win32\egg\genshi\template\base.py", line 565, in _include

for event in stream:

File "build\bdist.win32\egg\genshi\template\markup.py", line 235, in _strip

event = stream.next()

File "build\bdist.win32\egg\genshi\template\base.py", line 539, in _exec

for event in stream:

File "build\bdist.win32\egg\genshi\template\base.py", line 516, in _eval

result = _eval_expr(data, ctxt, vars)

File "build\bdist.win32\egg\genshi\template\base.py", line 282, in _eval_expr

retval = expr.evaluate(ctxt)

File "build\bdist.win32\egg\genshi\template\eval.py", line 158, in evaluate

return eval(self.code, _globals, {'data': data})

File "C:\Documents and Settings\Administrador\Datos de programa\Python-Eggs\tracmastertickets-2.1.1-py2.5.egg-tmp\masterticket\templates\depgraph.html", line 22, in <Expression u"Markup(graph_render('cmapx'))">

${Markup(graph_render('cmapx'))}

File "build\bdist.win32\egg\mastertickets\graphviz.py", line 128, in render

proc = subprocess.Popen([dot_path, '-T%s'%format], stdin=subprocess.PIPE, stdout=subprocess.PIPE)

File "C:\Python25\lib\subprocess.py", line 593, in init

errread, errwrite)

File "C:\Python25\lib\subprocess.py", line 793, in _execute_child

startupinfo)

WindowsError: [Error 2] El sistema no puede hallar el archivo especificado

Any idea?

Attachments (0)

Change History (6)

comment:1 Changed 17 years ago by Noah Kantrowitz

Resolution: invalid
Status: newclosed

You need to install the dot binary. If it is not available on your path, you need to set the dot_path option in trac.ini.

comment:2 in reply to:  1 Changed 16 years ago by alan.benson@…

Replying to coderanger:

You need to install the dot binary. If it is not available on your path, you need to set the dot_path option in trac.ini.

Coderanger, I received the same error message when I clicked on the Depgraph button, but my trac.log produced more error output as follows:

"C:/Trac/Projects\.egg-cache\tracmastertickets-2.1.3-py2.5.egg-tmp\mastertickets\templates\depgraph.html", line 22, in <Expression u"Markup(graph_render('cmapx').decode('utf8'))">

${Markup(graph_render('cmapx').decode('utf8'))}

File "build\bdist.win32\egg\mastertickets\graphviz.py", line 129, in render

proc = subprocess.Popen([dot_path, '-T%s'%format], stdin=subprocess.PIPE, stdout=subprocess.PIPE)

File "C:\Python25\lib\subprocess.py", line 593, in init

errread, errwrite)

File "C:\Python25\lib\subprocess.py", line 793, in _execute_child

startupinfo)

WindowsError: [Error 2] The system cannot find the file specified 2008-08-27 12:55:26,536 Trac[main] DEBUG: 1050 unreachable objects found. 2008-08-27 12:55:26,552 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/tracwysiwyg/wysiwyg.css'"> 2008-08-27 12:55:26,552 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/css/trac.css'"> 2008-08-27 12:55:26,584 Trac[main] DEBUG: 258 unreachable objects found. 2008-08-27 12:55:26,584 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/jquery.js'"> 2008-08-27 12:55:26,615 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,630 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,740 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/trac.js'"> 2008-08-27 12:55:26,755 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,755 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/search.js'"> 2008-08-27 12:55:26,786 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,786 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/tracwysiwyg/wysiwyg.js'"> 2008-08-27 12:55:26,818 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,834 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/tracwysiwyg/wysiwyg-load.js'"> 2008-08-27 12:55:26,865 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,865 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/trac_logo_mini.png'"> 2008-08-27 12:55:26,880 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient.png'"> 2008-08-27 12:55:26,895 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,927 Trac[main] DEBUG: 0 unreachable objects found. 2008-08-27 12:55:26,943 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/dots.gif'"> 2008-08-27 12:55:26,973 Trac[main] DEBUG: 0 unreachable objects found.

I set the dot_path in my trac.ini, as follows, with no luck. Any suggestions?

[graphviz] cache_dir = C:\Trac\Projects\ATMS\htdocs\graphviz dot_path = C:\Program Files\Graphviz2.20\bin cmd_path = C:\Program Files\Graphviz2.20\bin cache_manager = yes cache_max_size = 10000000 cache_min_size = 5000000 cache_max_count = 2000 cache_min_count = 1500

comment:3 Changed 16 years ago by Noah Kantrowitz

The dot_path option has to be in the [mastertickets] section, as this is the masterickets plugin.

comment:4 in reply to:  3 Changed 16 years ago by anonymous

Replying to coderanger:

The dot_path option has to be in the [mastertickets] section, as this is the masterickets plugin.

I set the following in trac.ini, with no luck:

[mastertickets] dot_path = C:\Program Files\Graphviz2.20\bin

I now get the following error message in trac.log:

"C:/Trac/Projects\.egg-cache\tracmastertickets-2.1.3-py2.5.egg-tmp\mastertickets\templates\depgraph.html", line 22, in <Expression u"Markup(graph_render('cmapx').decode('utf8'))">

${Markup(graph_render('cmapx').decode('utf8'))}

File "build\bdist.win32\egg\mastertickets\graphviz.py", line 129, in render

proc = subprocess.Popen([dot_path, '-T%s'%format], stdin=subprocess.PIPE, stdout=subprocess.PIPE)

File "C:\Python25\lib\subprocess.py", line 593, in init

errread, errwrite)

File "C:\Python25\lib\subprocess.py", line 793, in _execute_child

startupinfo)

WindowsError: [Error 13] Access is denied 2008-08-27 15:06:52,973 Trac[main] DEBUG: 1325 unreachable objects found.

I checked the permission on the C:\Program Files\Graphviz2.20\bin directory and Users have read access. Any suggestions?

comment:5 Changed 16 years ago by Noah Kantrowitz

You must set the value to FULL PATH to dot.exe. In your case:

[mastertickets]
dot_path = C:\Program Files\Graphviz2.20\bin\dot.exe

Also, for the love of formatting hit preview next time you try to ask for help.

comment:6 in reply to:  5 Changed 16 years ago by anonymous

Replying to coderanger:

You must set the value to FULL PATH to dot.exe. In your case:

[mastertickets]
dot_path = C:\Program Files\Graphviz2.20\bin\dot.exe

Also, for the love of formatting hit preview next time you try to ask for help.

Setting the dot.exe worked. Thank you very much for your help.

Also, thank you for the preview tip.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.