{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11320","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11320/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11320/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11320/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/11320","id":333747015,"node_id":"MDU6SXNzdWUzMzM3NDcwMTU=","number":11320,"title":"`pip install` fails (compile error) with Python 3.7rc1","user":{"login":"pgdr","id":17569537,"node_id":"MDQ6VXNlcjE3NTY5NTM3","avatar_url":"https://avatars0.githubusercontent.com/u/17569537?v=4","gravatar_id":"","url":"https://api.github.com/users/pgdr","html_url":"https://github.com/pgdr","followers_url":"https://api.github.com/users/pgdr/followers","following_url":"https://api.github.com/users/pgdr/following{/other_user}","gists_url":"https://api.github.com/users/pgdr/gists{/gist_id}","starred_url":"https://api.github.com/users/pgdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgdr/subscriptions","organizations_url":"https://api.github.com/users/pgdr/orgs","repos_url":"https://api.github.com/users/pgdr/repos","events_url":"https://api.github.com/users/pgdr/events{/privacy}","received_events_url":"https://api.github.com/users/pgdr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-06-19T16:27:29Z","updated_at":"2018-07-09T22:51:33Z","closed_at":null,"author_association":"NONE","body":"#### Description\r\nUnable to `pip install`(compile error: `PyThreadState` has no member ...) with Python 3.7rc1.\r\n\r\nMy apologies if this has been reported, but I couldn't find it in the issues (closed/open) nor any pull request for it.\r\n\r\nThere have been similar issues with pyyaml (yaml/pyyaml#126), numpy (numpy/numpy#10500), cython (cython/cython#1978), and pygame (pygame/pygame#382).\r\n\r\n\r\n\r\n#### Steps/Code to Reproduce\r\nInstall Python 3.7rc1.\r\n`pip install scikit-learn`\r\n\r\n#### Expected Results\r\n`pip` succeeds.\r\n\r\n#### Actual Results\r\nCompilation errors:\r\n\r\n```\r\n...\r\nsklearn/cluster/_dbscan_inner.cpp: In function ‘int\r\n__Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:\r\n\r\nsklearn/cluster/_dbscan_inner.cpp:6029:24: error: ‘PyThreadState’ has no member named ‘exc_type’\r\n     tmp_type = tstate->exc_type;\r\n                        ^\r\nsklearn/cluster/_dbscan_inner.cpp:6030:25: error: ‘PyThreadState’ has no member named ‘exc_value’\r\n     tmp_value = tstate->exc_value;\r\n                         ^\r\nsklearn/cluster/_dbscan_inner.cpp:6031:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’\r\n     tmp_tb = tstate->exc_traceback;\r\n                      ^\r\nsklearn/cluster/_dbscan_inner.cpp:6032:13: error: ‘PyThreadState’ has no member named ‘exc_type’\r\n     tstate->exc_type = local_type;\r\n             ^\r\nsklearn/cluster/_dbscan_inner.cpp:6033:13: error: ‘PyThreadState’ has no member named ‘exc_value’\r\n     tstate->exc_value = local_value;\r\n             ^\r\nsklearn/cluster/_dbscan_inner.cpp:6034:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’\r\n     tstate->exc_traceback = local_tb;\r\n             ^\r\nerror: Command \"g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g\r\n-fwrapv -O3 -Wall -fPIC\r\n-I/data/install/lib/python3.7/site-packages/numpy/core/include\r\n-I/data/install/lib/python3.7/site-packages/numpy/core/include\r\n-I/data/install/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o\r\nbuild/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF\r\nbuild/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d\" failed with exit\r\nstatus 1\r\n\r\n```\r\n\r\n#### Versions\r\n```\r\nLinux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo\r\nPython 3.7.0rc1 (default, Jun 19 2018, 10:54:58) \r\n[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]\r\nNumPy 1.14.5\r\nSciPy 1.1.0\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/403644634","html_url":"https://github.com/scikit-learn/scikit-learn/issues/11320#issuecomment-403644634","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11320","id":403644634,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzY0NDYzNA==","user":{"login":"shusso","id":590002,"node_id":"MDQ6VXNlcjU5MDAwMg==","avatar_url":"https://avatars0.githubusercontent.com/u/590002?v=4","gravatar_id":"","url":"https://api.github.com/users/shusso","html_url":"https://github.com/shusso","followers_url":"https://api.github.com/users/shusso/followers","following_url":"https://api.github.com/users/shusso/following{/other_user}","gists_url":"https://api.github.com/users/shusso/gists{/gist_id}","starred_url":"https://api.github.com/users/shusso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shusso/subscriptions","organizations_url":"https://api.github.com/users/shusso/orgs","repos_url":"https://api.github.com/users/shusso/repos","events_url":"https://api.github.com/users/shusso/events{/privacy}","received_events_url":"https://api.github.com/users/shusso/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T22:51:33Z","updated_at":"2018-07-09T22:51:33Z","author_association":"NONE","body":"@bgyarfas it should be possible to downgrade from python 3.7 back to 3.6.5 in brew\r\n```\r\nbrew info python3\r\nbrew switch python 3.6.5\r\n```\r\n"}}
{"actor":{"display_login":"shusso"}}