From ddebf0d3c767880e1f683c670f2b44f1d08931b9 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 1 Jan 2019 20:47:24 +0100 Subject: [PATCH] FEM: gmsh tools, Py3, there still are extra b'ees to remove --- src/Mod/Fem/femmesh/gmshtools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Fem/femmesh/gmshtools.py b/src/Mod/Fem/femmesh/gmshtools.py index 3a841c38ad..b18115d3b1 100644 --- a/src/Mod/Fem/femmesh/gmshtools.py +++ b/src/Mod/Fem/femmesh/gmshtools.py @@ -577,6 +577,9 @@ class GmshTools(): try: p = subprocess.Popen(comandlist, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() + if sys.version_info.major >= 3: + output = output.decode('utf-8') + error = error.decode('utf-8') # print(output) # stdout is still cut at some point but the warnings are in stderr and thus printed :-) # print(error) except: