@@ -309,7 +309,7 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
309
309
if min_ver is not None and version < min_ver :
310
310
raise ExecutableNotFoundError (
311
311
f"You have { args [0 ]} version { version } but the minimum "
312
- f"version supported by Matplotlib is { min_ver } . " )
312
+ f"version supported by Matplotlib is { min_ver } " )
313
313
return _ExecInfo (args [0 ], version )
314
314
else :
315
315
raise ExecutableNotFoundError (
@@ -330,7 +330,11 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
330
330
message = "Failed to find a Ghostscript installation"
331
331
raise ExecutableNotFoundError (message )
332
332
elif name == "inkscape" :
333
- return impl (["inkscape" , "-V" ], "^Inkscape ([^ ]*)" )
333
+ info = impl (["inkscape" , "-V" ], "^Inkscape ([^ ]*)" )
334
+ if info and info .version >= "1.0" :
335
+ raise ExecutableNotFoundError (
336
+ f"You have Inkscape version { info .version } but Matplotlib "
337
+ f"only supports Inkscape<1.0" )
334
338
elif name == "magick" :
335
339
path = None
336
340
if sys .platform == "win32" :
@@ -367,7 +371,7 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
367
371
or "0.9" <= info .version <= "1.0" ):
368
372
raise ExecutableNotFoundError (
369
373
f"You have pdftops version { info .version } but the minimum "
370
- f"version supported by Matplotlib is 3.0. " )
374
+ f"version supported by Matplotlib is 3.0" )
371
375
return info
372
376
else :
373
377
raise ValueError ("Unknown executable: {!r}" .format (name ))
0 commit comments