hbmartin / graphviz2drawio

Convert graphviz (dot) files into draw.io / lucid (mxGraph) format
http://graphviz2drawio.rtfd.io
GNU General Public License v3.0
164 stars 33 forks source link

Crahses when open .dot file on Python 3.7 #27

Closed meinnamehier closed 2 weeks ago

meinnamehier commented 5 years ago

I try to open this file https://graphviz.gitlab.io/_pages/Gallery/directed/datastruct.gv.txt -> saved as test.dot using Python 3.7.1 on a Mac with MacOS 10.12.6

This is the error I get:

This is beta software, please report issues to: https://github.com/hbmartin/graphviz2drawio/issues Something went wrong, please report Traceback (most recent call last): File "/usr/local/bin/graphviz2drawio", line 10, in sys.exit(main()) File "/usr/local/lib/python3.7/site-packages/graphviz2drawio/main.py", line 26, in main output = convert(args.to_convert, args.program) File "/usr/local/lib/python3.7/site-packages/graphviz2drawio/graphviz2drawio.py", line 27, in convert [e.enrich_from_graph(graph_edges[e.gid]) for e in edges] File "/usr/local/lib/python3.7/site-packages/graphviz2drawio/graphviz2drawio.py", line 27, in [e.enrich_from_graph(graph_edges[e.gid]) for e in edges] KeyError: 'node0:f0->node1:f0' Sentry is attempting to send 2 pending error messages Waiting up to 10 seconds Press Ctrl-C to quit

hbmartin commented 2 weeks ago

This is fixed in the upcoming 0.3 release and automated testing has been added for that file. Feel free to reopen or create a new issue if that release does not work as you expect. Thanks for the report!