{"action":"created","issue":{"url":"https://api.github.com/repos/requests/requests/issues/4113","repository_url":"https://api.github.com/repos/requests/requests","labels_url":"https://api.github.com/repos/requests/requests/issues/4113/labels{/name}","comments_url":"https://api.github.com/repos/requests/requests/issues/4113/comments","events_url":"https://api.github.com/repos/requests/requests/issues/4113/events","html_url":"https://github.com/requests/requests/issues/4113","id":232199143,"number":4113,"title":"Installation fails on platforms without multiprocessing","user":{"login":"cyberjacob","id":161093,"avatar_url":"https://avatars2.githubusercontent.com/u/161093?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberjacob","html_url":"https://github.com/cyberjacob","followers_url":"https://api.github.com/users/cyberjacob/followers","following_url":"https://api.github.com/users/cyberjacob/following{/other_user}","gists_url":"https://api.github.com/users/cyberjacob/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberjacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberjacob/subscriptions","organizations_url":"https://api.github.com/users/cyberjacob/orgs","repos_url":"https://api.github.com/users/cyberjacob/repos","events_url":"https://api.github.com/users/cyberjacob/events{/privacy}","received_events_url":"https://api.github.com/users/cyberjacob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-30T09:50:23Z","updated_at":"2017-05-30T09:58:12Z","closed_at":null,"body":"On the latest version of requests in pypi, requests requires the multiprocessing module to install correctly, even though it is not used in the installation, only in the unit tests. This means it is no longer possible to install requests on platforms that lack multiprocessing support (such as Android or IoT devices)\r\n\r\n## Expected Result\r\n\r\nRequests is installed and available for use\r\n\r\n## Actual Result\r\n\r\nInstallation fails with the following:\r\n\r\n```\r\nDownloading/unpacking requests\r\n  Downloading requests-2.17.3.tar.gz (123Kb): 123Kb downloaded\r\n  Running setup.py egg_info for package requests\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 14, in <module>\r\n      File \"/tmp/build/requests/setup.py\", line 11, in <module>\r\n        from multiprocessing import cpu_count\r\n    ImportError: No module named multiprocessing\r\n    Complete output from command python setup.py egg_info:\r\n    Traceback (most recent call last):\r\n\r\n  File \"<string>\", line 14, in <module>\r\n\r\n  File \"/tmp/build/requests/setup.py\", line 11, in <module>\r\n\r\n    from multiprocessing import cpu_count\r\n\r\nImportError: No module named multiprocessing\r\n\r\n----------------------------------------\r\nCommand python setup.py egg_info failed with error code 1\r\nStoring complete log in /sdcard/com.hipipal.qpyplus/.pip/pip.log\r\n```\r\n\r\n## Reproduction Steps\r\n\r\nFrom a platform without multiprocessing:\r\n\r\n```\r\npip install requests\r\n```\r\n\r\n## System Information\r\n\r\nFor obvious reasons, requests.help is not available, but I've tried to piece together the information that it would produce:\r\n\r\n- platform.system()   Linux\r\n- platform.release()   3.14.29\r\n- implementation     CPython\r\n- implementation_version   2.7.2\r\n- ssl.OPENSSL_VERSION_NUMBER   268443727L\r\n- requests_version   2.17.3\r\n"},"comment":{"url":"https://api.github.com/repos/requests/requests/issues/comments/304831555","html_url":"https://github.com/requests/requests/issues/4113#issuecomment-304831555","issue_url":"https://api.github.com/repos/requests/requests/issues/4113","id":304831555,"user":{"login":"Lukasa","id":1382556,"avatar_url":"https://avatars2.githubusercontent.com/u/1382556?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasa","html_url":"https://github.com/Lukasa","followers_url":"https://api.github.com/users/Lukasa/followers","following_url":"https://api.github.com/users/Lukasa/following{/other_user}","gists_url":"https://api.github.com/users/Lukasa/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasa/subscriptions","organizations_url":"https://api.github.com/users/Lukasa/orgs","repos_url":"https://api.github.com/users/Lukasa/repos","events_url":"https://api.github.com/users/Lukasa/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasa/received_events","type":"User","site_admin":false},"created_at":"2017-05-30T09:58:12Z","updated_at":"2017-05-30T09:58:12Z","body":"Thanks for this report. It should be entirely possible to pull the multiprocessing call into a tighter scope."}}
{"actor":{"display_login":"Lukasa"}}