I was able to install graph-tool using apt-get install python3-graph-tool. Couldn´t install from source using make, so I do not have it in virtual environment.
However, when I run an example from a repo that uses graph-tool, I get:
import graph_tool.all as gt
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3/dist-packages/graph_tool/init.py”, line 110, in
dl_import(“from . import libgraph_tool_core as libcore”)
File “/usr/lib/python3/dist-packages/graph_tool/dl_import.py”, line 44, in dl_import
exec(import_expr, local_dict, global_dict)
File “”, line 1, in
SystemError: initialization of libgraph_tool_core raised unreported exception
Unfortunately, it’s not possible to provide a solution to your problem or an answer to your question with the information provided.
To enable us to understand the situation, you need to provide all the items below:
Your exact graph-tool version.
Your operating system.
A minimal working example that shows the problem.
Item 3 above is very important! If you provide us only the part of the code that you believe causes the problem, then it is not possible to understand the context that may have contributed to it.
You need to provide us a complete example that runs and reproduces the problem you are observing.
To post code, please use triple back-ticks for proper formatting:
The minimal working example is checking if the installation went ok:
python -c "import graph_tool"
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3/dist-packages/graph_tool/init.py”, line 110, in
dl_import(“from . import libgraph_tool_core as libcore”)
File “/usr/lib/python3/dist-packages/graph_tool/dl_import.py”, line 44, in dl_import
exec(import_expr, local_dict, global_dict)
File “”, line 1, in
SystemError: initialization of libgraph_tool_core raised unreported exception