Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion python-client/docs/contribute/dev-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,17 @@ To install it run:
```shell
brew install pre-commit
pre-commit install
```
```


## Troubleshooting

### `Fatal Python error: segmentation fault` when running `pytest` on MacOS

This is probably caused by a [known issue](https://github.com/microsoft/LightGBM/issues/4707) with `libomp>=12` and LightGBM on MacOS.
You can avoid this problem by downgrading `libomp` to version 11.1.0, which is compatible with LightGBM.

```sh
$ wget https://raw.githubusercontent.com/Homebrew/homebrew-core/fb8323f2b170bd4ae97e1bac9bf3e2983af3fdb0/Formula/libomp.rb
$ brew install ./libomp.rb
```