'graph_tool' has no attribute 'graph_draw'
Bug reports:
Please follow the general troubleshooting steps first:
-
Are you running the latest graph-tool
version? -
Do you observe the problem with the current git version? -
Are you using Macports or Homebrew? If yes, please submit an issue there instead: https://github.com/Homebrew/brew/issues and https://trac.macports.org/newticket -
Did you compile graph-tool
manually? -
If you answered yes above, did you use the exact same compiler to build graph-tool
,boost-python
andPython
?
Please replace this section with a brief summary of your issue.
Do not forget to supply the following information:
-
A minimal and self-contained example that shows the problem. -
Your operating system. -
The Python version you are using.
I have installed graph_tool(v 2.58) through conda (python 3.11.4) on macOS 13.5.1,
when I try to run the following code:
import graph_tool as gt
g = gt.Graph([('retrieve', 'demonstrate'), ('retrieve', 'play'), ('demonstrate', 'play'), ('play', 'return')],
hashed= True)
gt.graph_draw(g)
I get the following error:
AttributeError: module 'graph_tool' has no attribute 'graph_draw'
same error occurs when i import using from graph_tool import *