Hi, I have just installed the latest release of graph-tool from anaconda. I would like to use your /graph_draw/ method to visualise graph but it fails to import the cairo_draw module.
*from graph_tool.draw import cairo_draw*
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-e914249e8560> in <module> ----> 1 from graph_tool.draw import cairo_draw
~/anaconda3/envs/TRIADB/lib/python3.7/site-packages/graph_tool/draw/cairo_draw.py in <module> 87 88 from .. dl_import import dl_import ---> 89 dl_import("from . import libgraph_tool_draw") 90 try: 91 from .libgraph_tool_draw import vertex_attrs, edge_attrs, vertex_shape,\
~/anaconda3/envs/TRIADB/lib/python3.7/site-packages/graph_tool/dl_import.py in dl_import(import_expr) 59 60 try: ---> 61 exec(import_expr, local_dict, global_dict) 62 finally: 63 sys.setdlopenflags(orig_dlopen_flags) # reset it to normal case to
~/anaconda3/envs/TRIADB/lib/python3.7/site-packages/graph_tool/draw/cairo_draw.py in <module>
ImportError: /home/athan/anaconda3/envs/TRIADB/lib/python3.7/site-packages/graph_tool/draw/libgraph_tool_draw.so: undefined symbol: _ZN5Cairo7Context9show_textERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
My environment:
============ Ubuntu 18.04 (bionic) Anaconda3-2019.07-Linux-x86_64 Python 3.7.4
I have created my virtual environment and installed graph_tool with conda install -c conda-forge graph-tool graph-tool 2.29
The package has been successfully installed under ~/anaconda3/envs/TRIADB/lib/python3.7/site-packages
and I have also tried to set LD_LIBRARY_PATH to solve the Imp ortError above
echo $LD_LIBRARY_PATH /home/athan/anaconda3/envs/TRIADB/lib:/home/athan/anaconda3/envs/TRIADB/lib/python3.7/site-packages/graph_tool:
Unfortunately this did not work, is there anything else I can try to enable drawing methods ?
Thank you in advance for your time to answer my question and kudos for sharing this excellent code, graph network library with the rest of us.
-- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
With a little more search I have just found that there is a highly related issue opened at conda-forge https://github.com/conda-forge/graph-tool-feedstock/issues/1 /graph-tool-feedstock.
I will append my case there and bidirectionally link it with the post here for other users.
It will also be great if the author finds some time to collaborate with conda-forge Feedstock Maintainers to solve the drawing problem.
-- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/