You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error when trying to generate the diagram of a grammar (the grammar is below):
python3 -m tatsu gram/graphql.ebnf -d --outfile p
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/dtrckd/.local/lib/python3.7/site-packages/tatsu/__main__.py", line 6, in<module>tatsu.main()
File "/home/dtrckd/.local/lib/python3.7/site-packages/tatsu/tool.py", line 238, in main
diagrams.draw(outfile, model)
File "/home/dtrckd/.local/lib/python3.7/site-packages/tatsu/diagrams.py", line 17, in draw
traverser.draw(filename)
File "/home/dtrckd/.local/lib/python3.7/site-packages/tatsu/diagrams.py", line 36, in draw
self.graph.layout(prog='dot')
File "/home/dtrckd/.local/lib/python3.7/site-packages/pygraphviz/agraph.py", line 1399, in layout
data = self._run_prog(prog, ''.join([args, "-T", fmt]))
File "/home/dtrckd/.local/lib/python3.7/site-packages/pygraphviz/agraph.py", line 1364, in _run_prog
raise IOError(b"".join(errors).decode(self.encoding))
OSError: Error: <stdin>: syntax error in line 327 near '\'
Hi,
I got this error when trying to generate the diagram of a grammar (the grammar is below):
Versions:
python 3.7
pygraphviz 1.5
tatsu 4.4.0
The text was updated successfully, but these errors were encountered: