From f3b65cd50686886fa6b06dbb33c6c77c8d6a226f Mon Sep 17 00:00:00 2001 From: Alma Walmsley Date: Mon, 24 Jun 2024 18:01:21 +1200 Subject: [PATCH 1/2] Ignore errors on ASL solver version check --- pyomo/solvers/plugins/solvers/ASL.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyomo/solvers/plugins/solvers/ASL.py b/pyomo/solvers/plugins/solvers/ASL.py index bb8174a013e..a29c64e017f 100644 --- a/pyomo/solvers/plugins/solvers/ASL.py +++ b/pyomo/solvers/plugins/solvers/ASL.py @@ -102,6 +102,7 @@ def _get_version(self): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, + errors='ignore', ) ver = _extract_version(results.stdout) if ver is None: From c8bf1312c4c08fb7a35a484fda0d9e651c0822c6 Mon Sep 17 00:00:00 2001 From: Miranda Mundt <55767766+mrmundt@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:08:26 -0600 Subject: [PATCH 2/2] Change universal_newlines -> text --- pyomo/solvers/plugins/solvers/ASL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyomo/solvers/plugins/solvers/ASL.py b/pyomo/solvers/plugins/solvers/ASL.py index a29c64e017f..7acd59936b1 100644 --- a/pyomo/solvers/plugins/solvers/ASL.py +++ b/pyomo/solvers/plugins/solvers/ASL.py @@ -101,7 +101,7 @@ def _get_version(self): timeout=5, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, - universal_newlines=True, + text=True, errors='ignore', ) ver = _extract_version(results.stdout)