{"action":"created","issue":{"url":"https://api.github.com/repos/librosa/librosa/issues/747","repository_url":"https://api.github.com/repos/librosa/librosa","labels_url":"https://api.github.com/repos/librosa/librosa/issues/747/labels{/name}","comments_url":"https://api.github.com/repos/librosa/librosa/issues/747/comments","events_url":"https://api.github.com/repos/librosa/librosa/issues/747/events","html_url":"https://github.com/librosa/librosa/issues/747","id":340265126,"node_id":"MDU6SXNzdWUzNDAyNjUxMjY=","number":747,"title":"librosa sets multiprocessing start_method","user":{"login":"SsnL","id":5674597,"node_id":"MDQ6VXNlcjU2NzQ1OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/5674597?v=4","gravatar_id":"","url":"https://api.github.com/users/SsnL","html_url":"https://github.com/SsnL","followers_url":"https://api.github.com/users/SsnL/followers","following_url":"https://api.github.com/users/SsnL/following{/other_user}","gists_url":"https://api.github.com/users/SsnL/gists{/gist_id}","starred_url":"https://api.github.com/users/SsnL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SsnL/subscriptions","organizations_url":"https://api.github.com/users/SsnL/orgs","repos_url":"https://api.github.com/users/SsnL/repos","events_url":"https://api.github.com/users/SsnL/events{/privacy}","received_events_url":"https://api.github.com/users/SsnL/received_events","type":"User","site_admin":false},"labels":[{"id":825941713,"node_id":"MDU6TGFiZWw4MjU5NDE3MTM=","url":"https://api.github.com/repos/librosa/librosa/labels/Upstream/dependency%20bug","name":"Upstream/dependency bug","color":"e99695","default":false},{"id":16995039,"node_id":"MDU6TGFiZWwxNjk5NTAzOQ==","url":"https://api.github.com/repos/librosa/librosa/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-11T14:22:52Z","updated_at":"2018-07-11T16:23:16Z","closed_at":"2018-07-11T16:18:56Z","author_association":"NONE","body":"#### Description\r\nAfter `import librosa`, `multiprocessing`'s `start_method` is set and users can't change it via `multiprocessing.set_start_method` anymore.\r\n\r\n#### Steps/Code to Reproduce\r\n```py\r\n➜  test git:(stft_fft) ✗ python\r\nPython 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)\r\n[GCC 7.2.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import multiprocessing as mp\r\n>>> mp.set_start_method('spawn')\r\n➜  test git:(stft_fft) ✗ python\r\nPython 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)\r\n[GCC 7.2.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import librosa\r\n^[[Aimport multiprocessing as mp\r\n>>> mp.set_start_method('spawn')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/ssnl/miniconda3/lib/python3.6/multiprocessing/context.py\", line 242, in set_start_method\r\n    raise RuntimeError('context has already been set')\r\nRuntimeError: context has already been set\r\n```\r\n\r\n#### Expected Results\r\n`librosa` doesn't set `multiprocessing`'s `start_method`.\r\n\r\n#### Actual Results\r\n`librosa` sets `multiprocessing`'s `start_method`.\r\n\r\n#### Versions\r\n```py\r\n>>> import platform; print(platform.platform())\r\nLinux-4.6.7-73_fbk21_3608_gb5941a6-x86_64-with-centos-7.5.1804-Core\r\n>>> import sys; print(\"Python\", sys.version)\r\nPython 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)\r\n[GCC 7.2.0]\r\n>>> import numpy; print(\"NumPy\", numpy.__version__)\r\nNumPy 1.14.3\r\n>>> import scipy; print(\"SciPy\", scipy.__version__)\r\nSciPy 1.1.0\r\n>>> import librosa; print(\"librosa\", librosa.__version__)\r\nlibrosa 0.6.1\r\n```"},"comment":{"url":"https://api.github.com/repos/librosa/librosa/issues/comments/404230002","html_url":"https://github.com/librosa/librosa/issues/747#issuecomment-404230002","issue_url":"https://api.github.com/repos/librosa/librosa/issues/747","id":404230002,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDIzMDAwMg==","user":{"login":"bmcfee","id":1190540,"node_id":"MDQ6VXNlcjExOTA1NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1190540?v=4","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T16:23:16Z","updated_at":"2018-07-11T16:23:16Z","author_association":"MEMBER","body":"Oof, thanks for looking into it!  I guess the recommended solution is to set the context before importing?"}}
{"actor":{"display_login":"bmcfee"}}