Skip to content

Commit 98ae79c

Browse files
authored
Merge pull request #1186 from Giskard-AI/task/dev-docs-segfault
Add info about lightgbm issue on MacOS in dev environment docs
2 parents df7a304 + 84f5727 commit 98ae79c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

‎python-client/docs/contribute/dev-environment.md‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,17 @@ To install it run:
1212
```shell
1313
brew install pre-commit
1414
pre-commit install
15-
```
15+
```
16+
17+
18+
## Troubleshooting
19+
20+
### `Fatal Python error: segmentation fault` when running `pytest` on MacOS
21+
22+
This is probably caused by a [known issue](https://github.com/microsoft/LightGBM/issues/4707) with `libomp>=12` and LightGBM on MacOS.
23+
You can avoid this problem by downgrading `libomp` to version 11.1.0, which is compatible with LightGBM.
24+
25+
```sh
26+
$ wget https://raw.githubusercontent.com/Homebrew/homebrew-core/fb8323f2b170bd4ae97e1bac9bf3e2983af3fdb0/Formula/libomp.rb
27+
$ brew install ./libomp.rb
28+
```

0 commit comments

Comments
 (0)