Hello, After updating graph_tool from version 2.33 to 2.35, I cannot make plots with graphviz_draw() anymore. Here is a minimal example to reproduce the error: ################################# import graph_tool.all as gt g = gt.Graph() v0 = g.add_vertex() v1 = g.add_vertex() e01 = g.add_edge(v0,v1) g_dict = {'layout':'neato'} gt.graphviz_draw(g, gprops=g_dict) ################################# The error message is: ################################# Error: Layout type: "n" not recognized. Use one of: circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi Error: Layout was not done Segmentation fault ################################# I suspect that somewhere the string 'neato' is converted to a single character 'n'. In my real code, I also get several warning messages quoting only the first character of miscellaneous strings. I have python3-graph-tool installed on my computer which runs on Linux Mint 19.2 Tina (based on Ubuntu 18.04 LTS, bionic). My graphviz version is 2.40.1. Can anyone reproduce this? Best regards Rolf -- ----------------------------------------------------------------------- Rolf Sander phone: [+49] 6131/305-4610 Max-Planck Institute of Chemistry email: rolf.sander@mpic.de PO Box 3060, 55020 Mainz, Germany homepage: www.rolf-sander.net ----------------------------------------------------------------------- https://www.encyclopedia-of-geosciences.net https://www.geoscientific-model-development.net -----------------------------------------------------------------------
Hi, Please open an issue in the website with this example, and I'll take a look at it when time permits. Best, Tiago Am 11.11.20 um 15:32 schrieb Rolf Sander:
Hello,
After updating graph_tool from version 2.33 to 2.35, I cannot make plots with graphviz_draw() anymore. Here is a minimal example to reproduce the error:
################################# import graph_tool.all as gt g = gt.Graph() v0 = g.add_vertex() v1 = g.add_vertex() e01 = g.add_edge(v0,v1) g_dict = {'layout':'neato'} gt.graphviz_draw(g, gprops=g_dict) #################################
The error message is:
################################# Error: Layout type: "n" not recognized. Use one of: circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi Error: Layout was not done Segmentation fault #################################
I suspect that somewhere the string 'neato' is converted to a single character 'n'. In my real code, I also get several warning messages quoting only the first character of miscellaneous strings.
I have python3-graph-tool installed on my computer which runs on Linux Mint 19.2 Tina (based on Ubuntu 18.04 LTS, bionic). My graphviz version is 2.40.1.
Can anyone reproduce this?
Best regards Rolf
-- Tiago de Paula Peixoto <tiago@skewed.de>
Thanks. I've opened an issue now. Best regards Rolf -- Sent from: https://nabble.skewed.de/
For anyone who has the same problem, here is a quick bug fix until the problem is finally resolved: In your graph-tool-2.35 code, replace the file graph_tool/draw/graphviz_draw.py by this one: http://www.rolf-sander.net/tmp/graphviz_draw.py FYI: This replacement file graphviz_draw.py is taken from graph-tool version 2.33, and a bug fix from Jeff Trull has already been applied, see: https://nabble.skewed.de/graphviz-draw-cannot-plot-loops-anymore-td4028466.h... -- Sent from: https://nabble.skewed.de/
participants (2)
-
Rolf Sander -
Tiago de Paula Peixoto