Import graph tools, Syntax error
Hello, I am facing the following problem when I try to import the graph tool, as follows:
(base) almasri3@blaise:/usr/lib$ python
Python 3.7.1 (default, Dec 14 2018, 19:28:38)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from graph_tool.all import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/almasri3/anaconda3/lib/python3.7/site-packages/graph_tool/all.py", line 35, in <module>
from graph_tool.draw import *
File "/home/almasri3/anaconda3/lib/python3.7/site-packages/graph_tool/draw/__init__.py", line 875, in <module>
from .cairo_draw import graph_draw, cairo_draw, get_hierarchy_control_points, default_cm
File "/home/almasri3/anaconda3/lib/python3.7/site-packages/graph_tool/draw/cairo_draw.py", line 1491, in <module>
from .gtk_draw import *
File "/home/almasri3/anaconda3/lib/python3.7/site-packages/graph_tool/draw/gtk_draw.py", line 1185
update_layout=True, async=False, no_main=False, **kwargs):
^
SyntaxError: invalid syntax
Thanks in advance, MALMASRI
Edited by Tiago Peixoto