problem with importing .all when compiled with --disable-cairo
As it's said in the title, after compiling graph-tool with --disable-cairo, importing all modules yields this error:
In [1]: import graph_tool.all
.../python_modules/graph_tool/draw/cairo_draw.py:96: RuntimeWarning: Error importing cairo-based drawing library. Was graph-tool compiled with cairomm support?
warnings.warn(msg, RuntimeWarning)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-72f7eb0cb2e1> in <module>()
----> 1 import graph_tool.all
.../python_modules/graph_tool/all.py in <module>()
33 import graph_tool.centrality
34 try:
---> 35 from graph_tool.draw import *
36 import graph_tool.draw
37 except ImportError as e:
.../python_modules/graph_tool/draw/__init__.py in <module>()
803
804 try:
--> 805 from .cairo_draw import graph_draw, cairo_draw, get_hierarchy_control_points, default_cm
806 except ImportError:
807 pass
.../python_modules/graph_tool/draw/cairo_draw.py in <module>()
201
202 for k in list(_vtypes.keys()):
--> 203 _vtypes[getattr(vertex_attrs, k)] = _vtypes[k]
204
205 for k in list(_etypes.keys()):
NameError: name 'vertex_attrs' is not defined