Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce0f5bd

Browse filesBrowse files
author
Joshua Taillon
authored
Change subprocess for inkscape version detection
Use the `--no-gui` (`-z`) for inkscape to prevent depending on an X server for version detection
1 parent 9e20541 commit ce0f5bd
Copy full SHA for ce0f5bd

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
330330
message = "Failed to find a Ghostscript installation"
331331
raise ExecutableNotFoundError(message)
332332
elif name == "inkscape":
333-
info = impl(["inkscape", "-V"], "^Inkscape ([^ ]*)")
333+
# use "no-gui" option for inkscape version detection:
334+
info = impl(["inkscape", "-z", "-V"], "^Inkscape ([^ ]*)")
334335
if info and info.version >= "1.0":
335336
raise ExecutableNotFoundError(
336337
f"You have Inkscape version {info.version} but Matplotlib "

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.