Build and install graph-tool 2.29 for python3.7: ImportError
After downloaded source from https://downloads.skewed.de/graph-tool/graph-tool-2.29.tar.bz2 I tried to build and install graph-tool with following commands:
# fedora 30 sudo dnf install g++ expat-devel boost-python3-devel gmp-devel CGAL-devel cairomm-devel sparsehash-devel PYTHON=/usr/bin/python3 ./configure make sudo make install
The package seems to be installed as expected (in
/usr/lib/python3.7/site-packages/graph_tool) but fails to be imported in python3 shell:
from graph_tool.all import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.7/site-packages/graph_tool/all.py", line 30, in <module> from graph_tool.correlations import * File "/usr/lib/python3.7/site-packages/graph_tool/correlations/__init__.py", line 45, in <module> dl_import("from . import libgraph_tool_correlations") File "/usr/lib/python3.7/site-packages/graph_tool/dl_import.py", line 61, in dl_import exec(import_expr, local_dict, global_dict) File "<string>", line 1, in <module> ImportError: dynamic module does not define module export function (PyInit_libgraph_tool_correlations)
Is it a bug or did I missed a step? I attach config.log if needed for investigation.