{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6917","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6917/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6917/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6917/events","html_url":"https://github.com/numpy/numpy/issues/6917","id":124533473,"number":6917,"title":"cythonize failed in installation","user":{"login":"zcyang","id":5890073,"avatar_url":"https://avatars.githubusercontent.com/u/5890073?v=3","gravatar_id":"","url":"https://api.github.com/users/zcyang","html_url":"https://github.com/zcyang","followers_url":"https://api.github.com/users/zcyang/followers","following_url":"https://api.github.com/users/zcyang/following{/other_user}","gists_url":"https://api.github.com/users/zcyang/gists{/gist_id}","starred_url":"https://api.github.com/users/zcyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcyang/subscriptions","organizations_url":"https://api.github.com/users/zcyang/orgs","repos_url":"https://api.github.com/users/zcyang/repos","events_url":"https://api.github.com/users/zcyang/events{/privacy}","received_events_url":"https://api.github.com/users/zcyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-01T06:33:07Z","updated_at":"2016-01-01T07:35:15Z","closed_at":null,"body":"Hi,\r\n\r\nI meet wit the following problem when I install from source:\r\n```\r\nCythonizing sources\r\nProcessing numpy/random/mtrand/mtrand.pyx\r\nTraceback (most recent call last):\r\n  File \"/share/apps/bin/cython\", line 8, in <module>\r\n    main(command_line = 1)\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/Main.py\", line 709, in main\r\n    result = compile(sources, options)\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/Main.py\", line 684, in compile\r\n    return compile_multiple(source, options)\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/Main.py\", line 657, in compile_multiple\r\n    context = options.create_context()\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/Main.py\", line 582, in create_context\r\n    self.cplus, self.language_level, options=self)\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/Main.py\", line 75, in __init__\r\n    from . import Builtin, CythonScope\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/CythonScope.py\", line 5, in <module>\r\n    from .UtilityCode import CythonUtilityCode\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/UtilityCode.py\", line 3, in <module>\r\n    from .TreeFragment import parse_from_strings, StringParseContext\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/TreeFragment.py\", line 17, in <module>\r\n    from .Visitor import VisitorTransform\r\n  File \"Cython/Compiler/Visitor.py\", line 15, in init Cython.Compiler.Visitor (/share/apps/src/cython/Cython/Compiler/Visitor.c:19407)\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/ExprNodes.py\", line 4244, in <module>\r\n    class SliceIndexNode(ExprNode):\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Compiler/ExprNodes.py\", line 4396, in SliceIndexNode\r\n    \"SliceObject\", \"ObjectHandling.c\", context={'access': 'Get'})\r\n  File \"Cython/Compiler/Code.py\", line 286, in Cython.Compiler.Code.UtilityCodeBase.load (/share/apps/src/cython/Cython/Compiler/Code.c:9181)\r\n  File \"Cython/Compiler/Code.py\", line 525, in Cython.Compiler.Code.TempitaUtilityCode.__init__ (/share/apps/src/cython/Cython/Compiler/Code.c:15550)\r\n  File \"Cython/Compiler/Code.py\", line 517, in Cython.Compiler.Code.sub_tempita (/share/apps/src/cython/Cython/Compiler/Code.c:15269)\r\n  File \"/share/apps/lib/python2.7/site-packages/Cython/Tempita/__init__.py\", line 4, in <module>\r\n    from ._tempita import *\r\n  File \"Cython/Tempita/_tempita.py\", line 36, in init Cython.Tempita._tempita (/share/apps/src/cython/Cython/Tempita/_tempita.c:31807)\r\n  File \"/share/apps/lib/python2.7/cgi.py\", line 50, in <module>\r\n    import mimetools\r\n  File \"/share/apps/lib/python2.7/mimetools.py\", line 6, in <module>\r\n    import tempfile\r\n  File \"/share/apps/lib/python2.7/tempfile.py\", line 35, in <module>\r\n    from random import Random as _Random\r\n  File \"/share/apps/src/numpy-1.9.3/numpy/random/__init__.py\", line 99, in <module>\r\n    from .mtrand import *\r\nImportError: No module named mtrand\r\n--fast-fail mtrand.c mtrand.pyx\r\nTraceback (most recent call last):\r\n  File \"/share/apps/src/numpy-1.9.3/tools/cythonize.py\", line 200, in <module>\r\n    main()\r\n  File \"/share/apps/src/numpy-1.9.3/tools/cythonize.py\", line 196, in main\r\n    find_process_files(root_dir)\r\n  File \"/share/apps/src/numpy-1.9.3/tools/cythonize.py\", line 188, in find_process_files\r\n    process(cur_dir, fromfile, tofile, function, hash_db)\r\n  File \"/share/apps/src/numpy-1.9.3/tools/cythonize.py\", line 162, in process\r\n    processor_function(fromfile, tofile)\r\n  File \"/share/apps/src/numpy-1.9.3/tools/cythonize.py\", line 73, in process_pyx\r\n    raise Exception('Cython failed')\r\nException: Cython failed\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 251, in <module>\r\n    setup_package()\r\n  File \"setup.py\", line 239, in setup_package\r\n    generate_cython()\r\n  File \"setup.py\", line 191, in generate_cython\r\n    raise RuntimeError(\"Running cythonize failed!\")\r\nRuntimeError: Running cythonize failed!\r\n```\r\n\r\nI am using \r\n```\r\nCython version 0.24.0a0\r\n```\r\n\r\nMany thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/168290295","html_url":"https://github.com/numpy/numpy/issues/6917#issuecomment-168290295","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6917","id":168290295,"user":{"login":"maniteja123","id":6291963,"avatar_url":"https://avatars.githubusercontent.com/u/6291963?v=3","gravatar_id":"","url":"https://api.github.com/users/maniteja123","html_url":"https://github.com/maniteja123","followers_url":"https://api.github.com/users/maniteja123/followers","following_url":"https://api.github.com/users/maniteja123/following{/other_user}","gists_url":"https://api.github.com/users/maniteja123/gists{/gist_id}","starred_url":"https://api.github.com/users/maniteja123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maniteja123/subscriptions","organizations_url":"https://api.github.com/users/maniteja123/orgs","repos_url":"https://api.github.com/users/maniteja123/repos","events_url":"https://api.github.com/users/maniteja123/events{/privacy}","received_events_url":"https://api.github.com/users/maniteja123/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T07:35:15Z","updated_at":"2016-01-01T07:35:15Z","body":"I did try installing cython directly from the source with the dev version ``0.24.0a0`` in a virtualenv, but couldn't reproduce the error. I better leave this to the experts rather than wasting your time. Apologies."}}