{"action":"created","issue":{"url":"https://api.github.com/repos/davisking/dlib/issues/1337","repository_url":"https://api.github.com/repos/davisking/dlib","labels_url":"https://api.github.com/repos/davisking/dlib/issues/1337/labels{/name}","comments_url":"https://api.github.com/repos/davisking/dlib/issues/1337/comments","events_url":"https://api.github.com/repos/davisking/dlib/issues/1337/events","html_url":"https://github.com/davisking/dlib/issues/1337","id":328025000,"node_id":"MDU6SXNzdWUzMjgwMjUwMDA=","number":1337,"title":"python2.7 pip install dlib error","user":{"login":"Hurmean","id":12394658,"node_id":"MDQ6VXNlcjEyMzk0NjU4","avatar_url":"https://avatars0.githubusercontent.com/u/12394658?v=4","gravatar_id":"","url":"https://api.github.com/users/Hurmean","html_url":"https://github.com/Hurmean","followers_url":"https://api.github.com/users/Hurmean/followers","following_url":"https://api.github.com/users/Hurmean/following{/other_user}","gists_url":"https://api.github.com/users/Hurmean/gists{/gist_id}","starred_url":"https://api.github.com/users/Hurmean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hurmean/subscriptions","organizations_url":"https://api.github.com/users/Hurmean/orgs","repos_url":"https://api.github.com/users/Hurmean/repos","events_url":"https://api.github.com/users/Hurmean/events{/privacy}","received_events_url":"https://api.github.com/users/Hurmean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-31T07:30:39Z","updated_at":"2018-05-31T10:03:50Z","closed_at":null,"author_association":"NONE","body":"Collecting dlib\r\n  Using cached https://files.pythonhosted.org/packages/79/26/8ef2835606b4b37f704862b2db55edb89675daca0b82718244fca718cddd/dlib-19.13.0.tar.gz\r\nBuilding wheels for collected packages: dlib\r\n  Running setup.py bdist_wheel for dlib: started\r\n  Running setup.py bdist_wheel for dlib: finished with status 'error'\r\n  Complete output from command /usr/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-lIh_fo/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /tmp/pip-wheel-qnWYfi --python-tag cp27:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  package init file 'dlib/__init__.py' not found (or not a regular file)\r\n  running build_ext\r\n  Building extension for Python 2.7.12 (default, Dec  4 2017, 14:50:18)\r\n  Invoking CMake setup: 'cmake /tmp/pip-install-lIh_fo/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7 -DPYTHON_EXECUTABLE=/usr/bin/python -DCMAKE_BUILD_TYPE=Release'\r\n  -- The C compiler identification is GNU 5.4.0\r\n  -- The CXX compiler identification is GNU 5.4.0\r\n  -- Check for working C compiler: /usr/bin/cc\r\n  -- Check for working C compiler: /usr/bin/cc -- works\r\n  -- Detecting C compiler ABI info\r\n  -- Detecting C compiler ABI info - done\r\n  -- Detecting C compile features\r\n  -- Detecting C compile features - done\r\n  -- Check for working CXX compiler: /usr/bin/c++\r\n  -- Check for working CXX compiler: /usr/bin/c++ -- works\r\n  -- Detecting CXX compiler ABI info\r\n  -- Detecting CXX compiler ABI info - done\r\n  -- Detecting CXX compile features\r\n  -- Detecting CXX compile features - done\r\n  -- Found PythonInterp: /usr/bin/python (found version \"2.7.12\")\r\n  -- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so\r\n  -- Performing Test HAS_CPP14_FLAG\r\n  -- Performing Test HAS_CPP14_FLAG - Success\r\n  -- pybind11 v2.2.2\r\n  CMake Error at CMakeLists.txt:17 (if):\r\n    if given arguments:\r\n  \r\n      \"EQUAL\" \"0\" \"AND\" \"compile_result\"\r\n  \r\n    Unknown arguments specified\r\n  \r\n  \r\n  CMake Error: Internal CMake error, TryCompile configure of cmake failed\r\n  -- Configuring incomplete, errors occurred!\r\n  See also \"/tmp/pip-install-lIh_fo/dlib/build/temp.linux-aarch64-2.7/CMakeFiles/CMakeOutput.log\".\r\n  Traceback (most recent call last):\r\n    File \"<string>\", line 1, in <module>\r\n    File \"/tmp/pip-install-lIh_fo/dlib/setup.py\", line 256, in <module>\r\n      'Topic :: Software Development',\r\n    File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\r\n      dist.run_commands()\r\n    File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n      self.run_command(cmd)\r\n    File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n      cmd_obj.run()\r\n    File \"/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py\", line 179, in run\r\n      self.run_command('build')\r\n    File \"/usr/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n      self.distribution.run_command(command)\r\n    File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n      cmd_obj.run()\r\n    File \"/usr/lib/python2.7/distutils/command/build.py\", line 128, in run\r\n      self.run_command(cmd_name)\r\n    File \"/usr/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n      self.distribution.run_command(command)\r\n    File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n      cmd_obj.run()\r\n    File \"/tmp/pip-install-lIh_fo/dlib/setup.py\", line 133, in run\r\n      self.build_extension(ext)\r\n    File \"/tmp/pip-install-lIh_fo/dlib/setup.py\", line 169, in build_extension\r\n      subprocess.check_call(cmake_setup, cwd=build_folder)\r\n    File \"/usr/lib/python2.7/subprocess.py\", line 541, in check_call\r\n      raise CalledProcessError(retcode, cmd)\r\n  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-lIh_fo/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1\r\n  \r\n  ----------------------------------------\r\n  Running setup.py clean for dlib\r\nFailed to build dlib\r\nInstalling collected packages: dlib\r\n  Running setup.py install for dlib: started\r\n    Running setup.py install for dlib: finished with status 'error'\r\n    Complete output from command /usr/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-lIh_fo/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-record-sHrt4s/install-record.txt --single-version-externally-managed --compile:\r\n    running install\r\n    running build\r\n    running build_py\r\n    package init file 'dlib/__init__.py' not found (or not a regular file)\r\n    running build_ext\r\n    Building extension for Python 2.7.12 (default, Dec  4 2017, 14:50:18)\r\n    Invoking CMake setup: 'cmake /tmp/pip-install-lIh_fo/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7 -DPYTHON_EXECUTABLE=/usr/bin/python -DCMAKE_BUILD_TYPE=Release'\r\n    -- The C compiler identification is GNU 5.4.0\r\n    -- The CXX compiler identification is GNU 5.4.0\r\n    -- Check for working C compiler: /usr/bin/cc\r\n    -- Check for working C compiler: /usr/bin/cc -- works\r\n    -- Detecting C compiler ABI info\r\n    -- Detecting C compiler ABI info - done\r\n    -- Detecting C compile features\r\n    -- Detecting C compile features - done\r\n    -- Check for working CXX compiler: /usr/bin/c++\r\n    -- Check for working CXX compiler: /usr/bin/c++ -- works\r\n    -- Detecting CXX compiler ABI info\r\n    -- Detecting CXX compiler ABI info - done\r\n    -- Detecting CXX compile features\r\n    -- Detecting CXX compile features - done\r\n    -- Found PythonInterp: /usr/bin/python (found version \"2.7.12\")\r\n    -- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so\r\n    -- Performing Test HAS_CPP14_FLAG\r\n    -- Performing Test HAS_CPP14_FLAG - Success\r\n    -- pybind11 v2.2.2\r\n    CMake Error at CMakeLists.txt:17 (if):\r\n      if given arguments:\r\n    \r\n        \"EQUAL\" \"0\" \"AND\" \"compile_result\"\r\n    \r\n      Unknown arguments specified\r\n    \r\n    \r\n    CMake Error: Internal CMake error, TryCompile configure of cmake failed\r\n    -- Configuring incomplete, errors occurred!\r\n    See also \"/tmp/pip-install-lIh_fo/dlib/build/temp.linux-aarch64-2.7/CMakeFiles/CMakeOutput.log\".\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 1, in <module>\r\n      File \"/tmp/pip-install-lIh_fo/dlib/setup.py\", line 256, in <module>\r\n        'Topic :: Software Development',\r\n      File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\r\n        dist.run_commands()\r\n      File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n        self.run_command(cmd)\r\n      File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n        cmd_obj.run()\r\n      File \"build/bdist.linux-aarch64/egg/setuptools/command/install.py\", line 61, in run\r\n      File \"/usr/lib/python2.7/distutils/command/install.py\", line 601, in run\r\n        self.run_command('build')\r\n      File \"/usr/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n        self.distribution.run_command(command)\r\n      File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n        cmd_obj.run()\r\n      File \"/usr/lib/python2.7/distutils/command/build.py\", line 128, in run\r\n        self.run_command(cmd_name)\r\n      File \"/usr/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n        self.distribution.run_command(command)\r\n      File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n        cmd_obj.run()\r\n      File \"/tmp/pip-install-lIh_fo/dlib/setup.py\", line 133, in run\r\n        self.build_extension(ext)\r\n      File \"/tmp/pip-install-lIh_fo/dlib/setup.py\", line 169, in build_extension\r\n        subprocess.check_call(cmake_setup, cwd=build_folder)\r\n      File \"/usr/lib/python2.7/subprocess.py\", line 541, in check_call\r\n        raise CalledProcessError(retcode, cmd)\r\n    subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-lIh_fo/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1\r\n    \r\n    ----------------------------------------\r\n\r\n\r\n\r\n* **Version**:19.13 <!-- What version of dlib? -->\r\n* **Where did you get dlib**: pip install dlib<!-- Did you get it from an official source like dlib.net, this github repo, or somewhere else? -->\r\n* **Platform**: ubuntu16.04  64-bit <!-- include something like `lsb_release -a` output, or if Windows, version and 32-bit or\r\n  64-bit -->\r\n* **Compiler**: linaro 5.4 gcc<!-- What compiler are you using?  What version of that compiler? -->\r\n"},"comment":{"url":"https://api.github.com/repos/davisking/dlib/issues/comments/393481657","html_url":"https://github.com/davisking/dlib/issues/1337#issuecomment-393481657","issue_url":"https://api.github.com/repos/davisking/dlib/issues/1337","id":393481657,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQ4MTY1Nw==","user":{"login":"aneeshp1994","id":32482880,"node_id":"MDQ6VXNlcjMyNDgyODgw","avatar_url":"https://avatars0.githubusercontent.com/u/32482880?v=4","gravatar_id":"","url":"https://api.github.com/users/aneeshp1994","html_url":"https://github.com/aneeshp1994","followers_url":"https://api.github.com/users/aneeshp1994/followers","following_url":"https://api.github.com/users/aneeshp1994/following{/other_user}","gists_url":"https://api.github.com/users/aneeshp1994/gists{/gist_id}","starred_url":"https://api.github.com/users/aneeshp1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aneeshp1994/subscriptions","organizations_url":"https://api.github.com/users/aneeshp1994/orgs","repos_url":"https://api.github.com/users/aneeshp1994/repos","events_url":"https://api.github.com/users/aneeshp1994/events{/privacy}","received_events_url":"https://api.github.com/users/aneeshp1994/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T10:03:50Z","updated_at":"2018-05-31T10:03:50Z","author_association":"NONE","body":"The error occurs for python 3.5 as well."}}
{"actor":{"display_login":"aneeshp1994"}}