Skip to content

Commit 2058dcb

Browse files
committed
backend_ps: Try to fix UnicodeError
The full traceback leads to here: lib/matplotlib/backends/backend_ps.py:1537: in gs_distill if ps_backend_helper.supports_ps2write: # gs version >= 9 lib/matplotlib/backends/backend_ps.py:106: in supports_ps2write return self.gs_version[0] >= 9 lib/matplotlib/backends/backend_ps.py:87: in gs_version s = Popen([self.gs_exe, "--version"], stdout=PIPE) venv/lib/python2.7/site-packages/subprocess32.py:825: in __init__ restore_signals, start_new_session) venv/lib/python2.7/site-packages/subprocess32.py:1387: in _execute_child for exe in executable_list) venv/lib/python2.7/site-packages/subprocess32.py:1386: in <genexpr> executable_list = tuple(fs_encode(exe) venv/lib/python2.7/site-packages/subprocess32.py:1385: in <genexpr> for dir in path_list)
1 parent d965ba2 commit 2058dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_ps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def gs_version(self):
8484
pass
8585

8686
from matplotlib.compat.subprocess import Popen, PIPE
87-
s = Popen([self.gs_exe, "--version"], stdout=PIPE)
87+
s = Popen([str(self.gs_exe), "--version"], stdout=PIPE)
8888
pipe, stderr = s.communicate()
8989
if six.PY3:
9090
ver = pipe.decode('ascii')

0 commit comments

Comments
 (0)