From 2c08ff23c07f2f8d51da8e1783c5346dccc1fd12 Mon Sep 17 00:00:00 2001 From: Billy Cao Date: Fri, 1 Mar 2024 03:13:58 +0800 Subject: [PATCH] Fix building from source on WSL (#3112) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 16978d74e0425..1f48be948aa84 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def _is_neuron() -> bool: torch_neuronx_installed = True try: subprocess.run(["neuron-ls"], capture_output=True, check=True) - except FileNotFoundError: + except (FileNotFoundError, PermissionError): torch_neuronx_installed = False return torch_neuronx_installed