{"action":"closed","issue":{"url":"https://api.github.com/repos/ntucllab/libact/issues/50","repository_url":"https://api.github.com/repos/ntucllab/libact","labels_url":"https://api.github.com/repos/ntucllab/libact/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/ntucllab/libact/issues/50/comments","events_url":"https://api.github.com/repos/ntucllab/libact/issues/50/events","html_url":"https://github.com/ntucllab/libact/issues/50","id":145080428,"number":50,"title":"Is specified version of Python is required when compiling? Compile error using \"python setup.py install\"","user":{"login":"yuCompHW","id":17773960,"avatar_url":"https://avatars.githubusercontent.com/u/17773960?v=3","gravatar_id":"","url":"https://api.github.com/users/yuCompHW","html_url":"https://github.com/yuCompHW","followers_url":"https://api.github.com/users/yuCompHW/followers","following_url":"https://api.github.com/users/yuCompHW/following{/other_user}","gists_url":"https://api.github.com/users/yuCompHW/gists{/gist_id}","starred_url":"https://api.github.com/users/yuCompHW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuCompHW/subscriptions","organizations_url":"https://api.github.com/users/yuCompHW/orgs","repos_url":"https://api.github.com/users/yuCompHW/repos","events_url":"https://api.github.com/users/yuCompHW/events{/privacy}","received_events_url":"https://api.github.com/users/yuCompHW/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ntucllab/libact/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-01T03:56:34Z","updated_at":"2016-04-13T08:58:10Z","closed_at":"2016-04-13T08:58:10Z","body":"**Hello, Thank you for providing this project**  \r\n\r\n**After I have installed the dependencies, I run**\r\npython setup.py install  \r\n\r\n**But, I get some errors:**  \r\n\r\nPlatform Detection: Linux. Link to liblapacke...\r\nrunning install\r\nrunning build\r\nrunning build_py\r\nrunning build_ext\r\nbuilding 'libact.query_strategies._variance_reduction' extension\r\nC compiler: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC\r\n\r\ncompile options: '-I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/lapacke -I/usr/include/python2.7 -c'\r\nextra options: '-std=c11'\r\nx86_64-linux-gnu-gcc: libact/query_strategies/src/variance_reduction/variance_reduction.c\r\nlibact/query_strategies/src/variance_reduction/variance_reduction.c:26:15: error: variable ‘moduledef’ has initializer but incomplete type\r\n static struct PyModuleDef moduledef = {\r\n               ^\r\nlibact/query_strategies/src/variance_reduction/variance_reduction.c:27:5: error: ‘PyModuleDef_HEAD_INIT’ undeclared here (not in a function)\r\n     PyModuleDef_HEAD_INIT,\r\n     ^\r\n  。。。 。。。 。。。\r\n  。。。 。。。 。。。\r\n\r\n**I wonder if I need to specify the version of Python, so I tried**\r\npython3 steup.py install\r\n**Still, I cannot install successfully, but the error changes** \r\nFile \"setup.py\", line 13, in <module>\r\n    from Cython.Build import cythonize\r\nImportError: No module named 'Cython'  \r\n\r\n**However, I have already installed Cython using \"pip install Cython\"**  \r\n\r\n**It will be very kind of you if you could tell me the requirement of version of the installed dependencies**\r\n\r\n**OR could you please tell how to modify the \"-I/usr/include/lapacke -I/usr/include/python2.7\" in the compile option**\r\n\r\n**Many Thanks**\r\n\r\n"}}