Unverified Commit 2c08ff23 authored by Billy Cao's avatar Billy Cao Committed by GitHub
Browse files

Fix building from source on WSL (#3112)

parent bfdcfa6a
...@@ -36,7 +36,7 @@ def _is_neuron() -> bool: ...@@ -36,7 +36,7 @@ def _is_neuron() -> bool:
torch_neuronx_installed = True torch_neuronx_installed = True
try: try:
subprocess.run(["neuron-ls"], capture_output=True, check=True) subprocess.run(["neuron-ls"], capture_output=True, check=True)
except FileNotFoundError: except (FileNotFoundError, PermissionError):
torch_neuronx_installed = False torch_neuronx_installed = False
return torch_neuronx_installed return torch_neuronx_installed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment