From 355d5bc14e9daff76dc7f6fb799aa84a51993eb0 Mon Sep 17 00:00:00 2001 From: Frank Murphy Date: Wed, 25 Sep 2024 17:20:06 -0400 Subject: [PATCH] Fix sysctl check on non-arm Macs Signed-off-by: Frank Murphy --- gpt4all-bindings/python/gpt4all/_pyllmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-bindings/python/gpt4all/_pyllmodel.py b/gpt4all-bindings/python/gpt4all/_pyllmodel.py index 208d834c..8bd8d1e6 100644 --- a/gpt4all-bindings/python/gpt4all/_pyllmodel.py +++ b/gpt4all-bindings/python/gpt4all/_pyllmodel.py @@ -32,7 +32,7 @@ EmbeddingsType = TypeVar('EmbeddingsType', bound='list[Any]') # Detect Rosetta 2 if platform.system() == "Darwin" and platform.processor() == "i386": if subprocess.run( - "sysctl -n sysctl.proc_translated".split(), check=True, capture_output=True, text=True, + "sysctl -n sysctl.proc_translated".split(), capture_output=True, text=True, ).stdout.strip() == "1": raise RuntimeError(textwrap.dedent("""\ Running GPT4All under Rosetta is not supported due to CPU feature requirements.