{
  "id": 410300,
  "title": "Need help with librosa [SOLVED]",
  "url": "/competitions/birdclef-2023/discussion/410300",
  "author_name": "",
  "post_date": "2023-05-14T19:05:33.055232200Z",
  "votes": 7,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi all. I have some trouble with librosa.load , when running DataLoader with num_workers&gt;0 get <br>\nwarnings: Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.<br>\ncrash: RuntimeError: DataLoader worker (pid(s) 1842655) exited unexpectedly ,cant find fix in google, if you meet the same, will be very grateful for some advice</p>\n<p>Solution:<br>\npip install resampy==0.4.0<br>\nexport OMP_NUM_THREADS=1<br>\npython train.py ….</p>",
  "messages": [
    {
      "id": "2259223",
      "postDate": "05/14/2023 19:05:33",
      "content": "<p>Hi all. I have some trouble with librosa.load , when running DataLoader with num_workers&gt;0 get <br>\nwarnings: Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.<br>\ncrash: RuntimeError: DataLoader worker (pid(s) 1842655) exited unexpectedly ,cant find fix in google, if you meet the same, will be very grateful for some advice</p>\n<p>Solution:<br>\npip install resampy==0.4.0<br>\nexport OMP_NUM_THREADS=1<br>\npython train.py ….</p>",
      "rawMarkdown": "Hi all. I have some trouble with librosa.load , when running DataLoader with num_workers>0 get \nwarnings: Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.\ncrash: RuntimeError: DataLoader worker (pid(s) 1842655) exited unexpectedly ,cant find fix in google, if you meet the same, will be very grateful for some advice\n\nSolution:\npip install resampy==0.4.0\nexport OMP_NUM_THREADS=1\npython train.py ....",
      "votes": null
    },
    {
      "id": "2259438",
      "postDate": "05/15/2023 02:30:34",
      "content": "<p>This may be due to a conflict between the OpenMP library that librosa uses and the fork() system call that Python uses to create new processes.  Try disabling OpenMP by setting the environment variable OMP_NUM_THREADS to 1. For example, you can run export OMP_NUM_THREADS=1 before running your Python script.</p>",
      "rawMarkdown": "This may be due to a conflict between the OpenMP library that librosa uses and the fork() system call that Python uses to create new processes.  Try disabling OpenMP by setting the environment variable OMP_NUM_THREADS to 1. For example, you can run export OMP_NUM_THREADS=1 before running your Python script.",
      "votes": null
    },
    {
      "id": "2259629",
      "postDate": "05/15/2023 06:16:31",
      "content": "<p>Thanks a lot for help</p>",
      "rawMarkdown": "Thanks a lot for help",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2259438,
      "author_name": "yus002",
      "author_url": "",
      "post_date": "05/15/2023 02:30:34",
      "content": "<p>This may be due to a conflict between the OpenMP library that librosa uses and the fork() system call that Python uses to create new processes.  Try disabling OpenMP by setting the environment variable OMP_NUM_THREADS to 1. For example, you can run export OMP_NUM_THREADS=1 before running your Python script.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2259629,
          "author_name": "nazarko99",
          "author_url": "",
          "post_date": "05/15/2023 06:16:31",
          "content": "<p>Thanks a lot for help</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2259223": "Hi all. I have some trouble with librosa.load , when running DataLoader with num_workers>0 get \nwarnings: Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.\ncrash: RuntimeError: DataLoader worker (pid(s) 1842655) exited unexpectedly ,cant find fix in google, if you meet the same, will be very grateful for some advice\n\nSolution:\npip install resampy==0.4.0\nexport OMP_NUM_THREADS=1\npython train.py ....",
    "2259438": "This may be due to a conflict between the OpenMP library that librosa uses and the fork() system call that Python uses to create new processes.  Try disabling OpenMP by setting the environment variable OMP_NUM_THREADS to 1. For example, you can run export OMP_NUM_THREADS=1 before running your Python script.",
    "2259629": "Thanks a lot for help"
  },
  "source": "meta"
}