Opened 15 years ago
Closed 14 years ago
#5913 closed bug (fixed)
OSError: (2, 'No such file or directory')
Reported by: | idefix | Owned by: | haiku-web |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Website/Trac | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
How to Reproduce
While doing a GET operation on /depgraph/5208
, Trac issued an internal error.
- open ticket:5208
- click on the Depgraph link in the top-right corner
User Agent was: Opera/9.80 (X11; Linux i686; U; en-GB) Presto/2.5.24 Version/10.53
System Information
Trac | 0.11.7
|
Python | 2.6 (r26:66714, Feb 3 2009, 20:52:03) [GCC 4.3.2 [gcc-4_3-branch revision 141291]]
|
setuptools | 0.6c8
|
psycopg2 | 2.0.12
|
Genshi | 0.5.1
|
mod_wsgi | 2.5 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
|
Pygments | 1.2.2
|
Subversion | 1.6.3 (r38063)
|
jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 450, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 227, in dispatch data, content_type) File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 773, in render_template stream.render(method, doctype=doctype, out=buffer) File "/usr/lib/python2.6/site-packages/genshi/core.py", line 179, in render return encode(generator, method=method, encoding=encoding, out=out) File "/usr/lib/python2.6/site-packages/genshi/output.py", line 61, in encode for chunk in iterator: File "/usr/lib/python2.6/site-packages/genshi/output.py", line 311, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/output.py", line 753, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/output.py", line 592, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/output.py", line 698, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/usr/lib/python2.6/site-packages/genshi/output.py", line 532, in __call__ for ev in stream: File "/usr/lib/python2.6/site-packages/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.6/site-packages/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 838, in _strip_accesskeys for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 827, in _generate for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 569, in _include for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/markup.py", line 298, in _match ctxt, start=idx 1, **vars): File "/usr/lib/python2.6/site-packages/genshi/template/markup.py", line 298, in _match ctxt, start=idx 1, **vars): File "/usr/lib/python2.6/site-packages/genshi/template/markup.py", line 245, in _match for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 543, in _exec for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 533, in _eval for event in substream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 496, in _eval for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 551, in _flatten for event in stream: File "/usr/lib/python2.6/site-packages/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.6/site-packages/genshi/path.py", line 141, in _generate subevent = stream.next() File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 569, in _include for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/markup.py", line 234, in _strip event = stream.next() File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 543, in _exec for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 533, in _eval for event in substream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 496, in _eval for kind, data, pos in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 551, in _flatten for event in stream: File "/usr/lib/python2.6/site-packages/genshi/core.py", line 283, in _ensure for event in stream: File "/usr/lib/python2.6/site-packages/genshi/path.py", line 141, in _generate subevent = stream.next() File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 569, in _include for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/markup.py", line 234, in _strip event = stream.next() File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 543, in _exec for event in stream: File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 520, in _eval result = _eval_expr(data, ctxt, **vars) File "/usr/lib/python2.6/site-packages/genshi/template/base.py", line 286, in _eval_expr retval = expr.evaluate(ctxt) File "/usr/lib/python2.6/site-packages/genshi/template/eval.py", line 180, in evaluate return eval(self.code, _globals, {'__data__': data}) File "/srv/trac/dev.haiku-os.org/eggs/TracMasterTickets-2.1.3_haiku-py2.6.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.linux-i686/egg/mastertickets/graphviz.py", line 129, in render proc = subprocess.Popen([dot_path, '-T%s'%format], stdin=subprocess.PIPE, stdout=subprocess.PIPE) File "/usr/lib/python2.6/subprocess.py", line 595, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1106, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The graph generation should now work.
The 'automatic' ticket generation is a Trac thing, I'll look at it when it is more problematic, but I reckon it is better to fix the issues :-)
Note:
See TracTickets
for help on using tickets.
Another bug, related to this one:
If you click on the
Create
button in theInternal Error
page that the Depgraph link opens, the following page opens:Which isn't all too surprising, as the URL is rather long:
It might be a good idea to change the submit method of the
Create
button fromGET
toPOST
.