Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.
NONE
Fixed by installing either resampy<3 or resampy>=4
2022-08-10T19:53:10Z
https://github.com/huggingface/datasets/issues/4820#issuecomment-1211198568
https://api.github.com/repos/huggingface/datasets/issues/4820
IC_kwDODunzps5IMWxo
https://api.github.com/repos/huggingface/datasets/issues/comments/1211198568/reactions
2022-08-10T19:53:10Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1211198568
https://avatars.githubusercontent.com/u/37379131?v=4
https://api.github.com/users/talhaanwarch/events{/privacy}
https://api.github.com/users/talhaanwarch/followers
https://api.github.com/users/talhaanwarch/following{/other_user}
https://api.github.com/users/talhaanwarch/gists{/gist_id}
https://github.com/talhaanwarch
talhaanwarch
MDQ6VXNlcjM3Mzc5MTMx
https://api.github.com/users/talhaanwarch/orgs
https://api.github.com/users/talhaanwarch/received_events
https://api.github.com/users/talhaanwarch/repos
https://api.github.com/users/talhaanwarch/starred{/owner}{/repo}
https://api.github.com/users/talhaanwarch/subscriptions
User
https://api.github.com/users/talhaanwarch
public
Hi, when i try to run prepare_dataset function in [fine tuning ASR tutorial 4](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_tuning_Wav2Vec2_for_English_ASR.ipynb) , i got this error.
I got this error
Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.
There is no other logs available, so i have no clue what is the cause of it.
```

def prepare_dataset(batch):
    audio = batch["path"]
    # batched output is "un-batched"
    batch["input_values"] = processor(audio["array"], sampling_rate=audio["sampling_rate"]).input_values[0]
    batch["input_length"] = len(batch["input_values"])
    with processor.as_target_processor():
        batch["labels"] = processor(batch["text"]).input_ids
    return batch

data = data.map(prepare_dataset, remove_columns=data.column_names["train"],
                      num_proc=4)
```


Specify the actual results or traceback.
There is no traceback except
`Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.`
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.4.0
- Platform: Linux-5.15.0-43-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 9.0.0
- Pandas version: 1.4.3
