Page MenuHomeSolus

Issue with graph-tool submodules
Closed, ResolvedPublic

Description

I can't import submodules from graph-tool since it's most recent update, I presume this is to do with Python 3.7 but not certain. When I try to import all I get the following error:

>>> from graph_tool.all import *
Traceback (most recent call last):
  File "<pyshell#10>", line 1, in <module>
    from graph_tool.all import *
  File "/usr/lib/python3.7/site-packages/graph_tool/all.py", line 29, in <module>
    from graph_tool.correlations import *
  File "/usr/lib/python3.7/site-packages/graph_tool/correlations/__init__.py", line 43, in <module>
    dl_import("from . import libgraph_tool_correlations")
  File "/usr/lib/python3.7/site-packages/graph_tool/dl_import.py", line 58, in dl_import
    exec(import_expr, local_dict, global_dict)
  File "<string>", line 1, in <module>
ImportError: /usr/lib/python3.7/site-packages/graph_tool/correlations/libgraph_tool_correlations.so: undefined symbol: __atomic_load

This error is for correlations but if you try with a different one, say inference I get the same issue:

import graph_tool.inference as inference
Traceback (most recent call last):
  File "<pyshell#15>", line 1, in <module>
    import graph_tool.inference as inference
  File "/usr/lib/python3.7/site-packages/graph_tool/inference/__init__.py", line 241, in <module>
    from . blockmodel import *
  File "/usr/lib/python3.7/site-packages/graph_tool/inference/blockmodel.py", line 26, in <module>
    from .. stats import remove_parallel_edges, remove_self_loops
  File "/usr/lib/python3.7/site-packages/graph_tool/stats/__init__.py", line 48, in <module>
    dl_import("from . import libgraph_tool_stats")
  File "/usr/lib/python3.7/site-packages/graph_tool/dl_import.py", line 58, in dl_import
    exec(import_expr, local_dict, global_dict)
  File "<string>", line 1, in <module>
ImportError: /usr/lib/python3.7/site-packages/graph_tool/stats/libgraph_tool_stats.so: undefined symbol: __atomic_load

I hadn't noticed this before now as I can still import graph-tool on it's own and load graphs and do some operations.

Graph-tool 2.33 has been released so I'm going to try to build that in case the issue has been resolved, if it has I will report back and submit an update. If not it will require more investigation. I looked at the graph-tool gitlab and couldn't see anyone else reporting this.

Event Timeline

padraig created this task.Jul 24 2020, 11:23 AM

Building 2.33 locally didn't resolve this, I'm still testing but as it takes so long to build it'll take me a while. I might ask the developer though as I can't see why this would be a Solus issue.

I think this is an issue with clang as compiling it without clang=yes did not have this problem. Once I have verified this (with yet another build of this monster) I will submit a package upgrade that should resolve it.

padraig closed this task as Resolved.Aug 13 2020, 1:59 PM
padraig claimed this task.

Should be resolved with D9382.