Am 24.10.18 um 15:19 schrieb Dominguez Morán, Juan Manuel:
Hi,
I'm getting the following error on the image that was last updated 4 months ago (info from the docker hub):
--------------------------------------------------------------------------- NameError Traceback (most recent call last) /usr/lib/python3.6/site-packages/graph_tool/draw/graphviz_draw.py in graphviz_draw(g, pos, size, pin, layout, maxiter, ratio, overlap, sep, splines, vsize, penwidth, elen, gprops, vprops, eprops, vcolor, ecolor, vcmap, vnorm, ecmap, enorm, vorder, eorder, output, output_format, fork, return_string) 319 try: --> 320 if gv_new_api: 321 gvg = libgv.agopen("G".encode("utf8"),
NameError: name 'gv_new_api' is not defined
During handling of the above exception, another exception occurred:
NameError Traceback (most recent call last) <ipython-input-4-3c9127bf2c6b> in <module>() 3 #output_size=(1920,1080), 4 #inline=True, ----> 5 output=home+'/g.png')
/usr/lib/python3.6/site-packages/graph_tool/draw/graphviz_draw.py in graphviz_draw(g, pos, size, pin, layout, maxiter, ratio, overlap, sep, splines, vsize, penwidth, elen, gprops, vprops, eprops, vcolor, ecolor, vcmap, vnorm, ecmap, enorm, vorder, eorder, output, output_format, fork, return_string) 591 if has_layout: 592 libgv.gvFreeLayout(gvc, gvg) --> 593 libgv.agclose(gvg) 594 595 if len(ret) > 1:
NameError: name 'libgv' is not defined ---------------------------------------------------------------------------
Before I looked at the source code I tried the possible quickfix of 'pip install graphviz', which did not help. After looking at the source code I learned why it didn't help, yet dunno right out of the bat how to fix this error. Any ideas? Would greatly appreciate it!
You need to install graphviz using pacman: pacman -S graphviz I'll update the docker image next release to include it. Best, Tiago -- Tiago de Paula Peixoto <t.peixoto@bath.ac.uk> -- Tiago de Paula Peixoto <tiago@skewed.de>