{"action":"closed","issue":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/748","repository_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose","labels_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/748/comments","events_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/748/events","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/748","id":344193004,"node_id":"MDU6SXNzdWUzNDQxOTMwMDQ=","number":748,"title":"python layer not made despite setting flag in  CMakeCache.txt  (...and caffe/src/openpose_caffe-build/CMakeCache.txt, and CMakeFiles/openpose_caffe.dir/build.make)","user":{"login":"jeremy-rutman","id":3863744,"node_id":"MDQ6VXNlcjM4NjM3NDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3863744?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremy-rutman","html_url":"https://github.com/jeremy-rutman","followers_url":"https://api.github.com/users/jeremy-rutman/followers","following_url":"https://api.github.com/users/jeremy-rutman/following{/other_user}","gists_url":"https://api.github.com/users/jeremy-rutman/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremy-rutman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremy-rutman/subscriptions","organizations_url":"https://api.github.com/users/jeremy-rutman/orgs","repos_url":"https://api.github.com/users/jeremy-rutman/repos","events_url":"https://api.github.com/users/jeremy-rutman/events{/privacy}","received_events_url":"https://api.github.com/users/jeremy-rutman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-24T20:33:26Z","updated_at":"2018-07-27T17:49:36Z","closed_at":"2018-07-27T17:49:36Z","author_association":"NONE","body":"\r\n### Issue Summary\r\npython api not built despite changing entry at \r\nCMakeCache.txt  , when that didnt work tried \r\nCMakeFiles/openpose_caffe.dir/build.make , when that didnt work tried \r\ncaffe/src/openpose_caffe-build/CMakeCache.txt, when that didnt work tried \r\ncaffe/tmp/openpose_caffe-cfgcmd.txt\r\n\r\nline in CMakelists.txt: \r\noption(BUILD_PYTHON \"Build OpenPose python.\" ON)\r\n\r\n### Executed Command (if any)\r\n\r\npython 1_extract_pose.py\r\n\r\n### OpenPose Output (if any)\r\n\r\n```\r\nroot@8ba95f9fc941:/data/openpose/examples/tutorial_python# python 1_extract_pose.py \r\nTraceback (most recent call last):\r\n  File \"1_extract_pose.py\", line 21, in <module>\r\n    raise Exception('Error: OpenPose library could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?')\r\nException: Error: OpenPose library could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?\r\n```\r\n\r\nalso, from make:\r\n```\r\n-- ******************* Caffe Configuration Summary *******************\r\n-- General:\r\n--   Version           :   1.0.0\r\n--   Git               :   1.0-112-g9453eb0\r\n--   System            :   Linux\r\n--   C++ compiler      :   /usr/bin/c++\r\n--   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized\r\n--   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized\r\n--   Build type        :   Release\r\n-- \r\n--   BUILD_SHARED_LIBS :   ON\r\n--   BUILD_python      :   OFF\r\n\r\n```\r\n\r\nif i further  edit caffe/tmp/openpose_caffe-cfgcmd.txt  then I can force the report of BUILD_python in the make to be on. However the python examples still dont work (' OpenPose library could not be found ' ) \r\n\r\n\r\noutput when searching for where build_python occurs:\r\n\r\n\r\n```\r\nroot@8ba95f9fc941:/data/openpose# grep -ir build_python *\r\n3rdparty/caffe/cmake/Dependencies.cmake:if(BUILD_python)\r\n3rdparty/caffe/cmake/Dependencies.cmake:    if(BUILD_python_layer)\r\n3rdparty/caffe/cmake/Summary.cmake:  caffe_status(\"  BUILD_python      :   ${BUILD_python}\")\r\n3rdparty/caffe/CMakeLists.txt:caffe_option(BUILD_python \"Build Python wrapper\" ON)\r\n3rdparty/caffe/CMakeLists.txt:caffe_option(BUILD_python_layer \"Build the Caffe Python layer\" ON)\r\n3rdparty/caffe/CMakeLists.txt:if(BUILD_python)\r\nCMakeLists.txt:option(BUILD_PYTHON \"Build OpenPose python.\" ON)\r\nCMakeLists.txt:  if (${GPU_MODE} MATCHES \"OPENCL\" OR BUILD_PYTHON)\r\nCMakeLists.txt:  if (${GPU_MODE} MATCHES \"CPU_ONLY\" OR ${GPU_MODE} MATCHES \"OPENCL\" OR BUILD_PYTHON)\r\nCMakeLists.txt:  if (BUILD_PYTHON)\r\nCMakeLists.txt:#          -DBUILD_python=OFF\r\nCMakeLists.txt:          -DBUILD_python=ON\r\nCMakeLists.txt:#          -DBUILD_python=OFF\r\nCMakeLists.txt:          -DBUILD_python=ON\r\nCMakeLists.txt:#          -DBUILD_python_layer=OFF\r\nCMakeLists.txt:          -DBUILD_python_layer=OFF\r\nCMakeLists.txt:#          -DBUILD_python=OFF\r\nCMakeLists.txt:          -DBUILD_python=ON\r\nCMakeLists.txt:          -DBUILD_python_layer=OFF\r\nCMakeLists.txt:    if (${GPU_MODE} MATCHES \"CPU_ONLY\" OR ${GPU_MODE} MATCHES \"OPENCL\" OR BUILD_PYTHON)\r\nCMakeLists.txt:  if(BUILD_PYTHON)\r\nbuild/caffe/src/openpose_caffe-build/CMakeCache.txt:BUILD_python:BOOL=ON\r\nbuild/caffe/src/openpose_caffe-build/CMakeCache.txt:BUILD_python_layer:BOOL=OFF\r\nbuild/caffe/tmp/openpose_caffe-cfgcmd.txt:cmd='/usr/bin/cmake;-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>;-DUSE_CUDNN=ON;-DCPU_ONLY=OFF;-DCMAKE_BUILD_TYPE=Release;-DBUILD_docs=OFF;-DBUILD_python=ON;-DBUILD_python_layer=OFF;-DUSE_LEVELDB=OFF;-DUSE_LMDB=OFF;-DUSE_OPENCV=OFF;-GUnix Makefiles;/data/openpose/3rdparty/caffe'\r\nbuild/examples/tutorial_python/2_pose_from_heatmaps.py:    raise Exception('Error: OpenPose library could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?')\r\nbuild/examples/tutorial_python/1_extract_pose.py:    raise Exception('Error: OpenPose library could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?')\r\nbuild/CMakeCache.txt:BUILD_PYTHON:BOOL=ON\r\nbuild/CMakeFiles/openpose_caffe.dir/build.make:\tcd /data/openpose/build/caffe/src/openpose_caffe-build && /usr/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=/data/openpose/build/caffe -DUSE_CUDNN=ON -DCPU_ONLY=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_docs=OFF -DBUILD_python=ON -DBUILD_python_layer=OFF -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF \"-GUnix Makefiles\" /data/openpose/3rdparty/caffe\r\ndoc/installation.md:To install the Python API, ensure that the `BUILD_PYTHON` flag is turned on while running CMake GUI. Check [doc/modules/python_module.md](./modules/python_module.md) for further details.\r\nexamples/tutorial_python/2_pose_from_heatmaps.py:    raise Exception('Error: OpenPose library could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?')\r\nexamples/tutorial_python/1_extract_pose.py:    raise Exception('Error: OpenPose library could not be found. Did you enable `BUILD_PYTHON` in CMake and have this Python script in the right folder?')\r\n\r\n```\r\n\r\n### Type of Issue\r\n- Compilation/installation error\r\n\r\n### Your System Configuration\r\n1. **OpenPose version**: Latest GitHub code\r\n\r\n2. **General configuration**:\r\n    - **Installation mode**: CMake fro command line (cmake ..) \r\n\r\n    - **Operating system** (`lsb_release -a` in Ubuntu):  Ubuntu 16.04.3 LTS\r\n    - **Release or Debug mode**? (by default: release): release\r\n    - Compiler  gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609\r\n\r\n3. **Non-default settings**:\r\nMAKE_PYTHON:ON\r\n\r\n4. **3rd-party software**:\r\n    - **Caffe version**: Default from OpenPose, custom version, ...?\r\n    - **CMake version** (`cmake --version` in Ubuntu):\r\n    - **OpenCV version**: pre-compiled `apt-get install libopencv-dev` (only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?\r\n\r\n5. If **GPU mode** issue:\r\n    - **CUDA version** (`cat /usr/local/cuda/version.txt` in most cases):\r\n    - **cuDNN version**:\r\n    - **GPU model** (`nvidia-smi` in Ubuntu):\r\n\r\n6. If **CPU-only mode** issue:\r\n    - **CPU brand & model**:\r\n    - Total **RAM memory** available:\r\n\r\n7. If **Python** API:\r\n    - **Python version**: 2.7\r\n    - **Numpy version** (`python -c \"import numpy; print numpy.version.version\"` in Ubuntu):\r\n"}}
{"actor":{"display_login":"jeremy-rutman"}}