diff --git a/cortex/svgoverlay.py b/cortex/svgoverlay.py index eb60c5054..5513d8068 100644 --- a/cortex/svgoverlay.py +++ b/cortex/svgoverlay.py @@ -223,6 +223,15 @@ def get_texture(self, layer_name, height, name=None, background=None, labels=Tru missing bits=32 keyword input argument, did not seeme necessary to specify png bits. """ + # Give a more informative error in case we don't have inkscape + # installed + if INKSCAPE_VERSION is None: + raise RuntimeError( + "Inkscape doesn't seem to be installed on this system." + "SVGOverlay.get_texture requires inkscape." + "Please make sure that inkscape is installed and that is " + "accessible from the terminal.") + import matplotlib.pyplot as plt # Set the size of the texture if background is not None: