ImportError from draw after openmp_set_num_threads
>>> import graph_tool
>>> graph_tool.openmp_set_num_threads(1)
>>> from graph_tool.draw import graph_draw
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'graph_draw' from 'graph_tool.draw' (/usr/lib/python3/dist-packages/graph_tool/draw/__init__.py)
Obviously import works fine without the call to openmp_set_num_threads
.
Tested on Python 3.10.12 with version 2.58 (commit 187fb477, Thu Aug 17 23:44:58 2023 +0200), installed via the PPA on an Ubuntu 22.04 LTS.