openpose icon indicating copy to clipboard operation
openpose copied to clipboard

_openpose.dll exists but openpose.py throws "not a proper win32 file"

Open MartinFultot opened this issue 8 years ago • 3 comments

Posting rules

  1. Fill the Your System Configuration section (all of it!) if you have some kind of error or performance question.
  2. No questions about training. OpenPose only implements testing.
  3. No questions about 3rd party libraries.
    • Caffe errors/issues, check Caffe documentation.
    • CUDA check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, and then re-compiling (or re-installing) OpenPose. Otherwise, check for help in CUDA forums.
    • OpenCV errors: Install the default/pre-compiled OpenCV or check for online help.
  4. No duplicated posts.
  5. No posts about questions already answered / clearly explained in the documentation (e.g. no more low-speed nor out-of-memory questions).
  6. Set a proper issue title: add the Ubuntu/Windows word and be specific (e.g. do not simple call it: Compile error).
  7. Only English comments. Issues/comments which do not follow these rules will be ignored or removed with no further clarification.

Issue Summary

I have followed strictly all the instructions for Python. Installed with CMake, checked BUILD_PYTHON

Then run the visual studio project (Using Visual studio 2017 x64 with -T v140

Then set RELEASE x64 and choose the openpose library as start project. 21 projects built successfully, 1 failed.

build/python/openpose/Release has _openpose.dll _openpose.exp _openpose.lib.

I go to build/examples/tutorial_api_python, open the command prompt there (already on the right folder) execute 1_extract_pose.py and get

openpose library not found, have you checked BUILD_PYTHON ? YES I HAVE Are you sure you are in the right folder ? YES I AM

I have tried 100 more things, including building the project several times with CMake and same error systematically.

Going to the build/python/openpose/ and running openpose.py gives me

File "C:\Python27\lib\site-packages\numpy\ctypeslib.py", line 155, in load_library raise OSError ("no file with expected extension") So I changed the line just to test, under the exception it tries a Debug folder which doesn't exist. Instead I pasted the same command to load from Release again, and that's when the error is "not a proper win32 file."

So it looks like the .dll is being created but with bugs. WHY?

Please help!

Executed Command (if any)

CMake configuration log The C compiler identification is MSVC 19.0.24234.1 The CXX compiler identification is MSVC 19.0.24234.1 Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0 (found version "9.0") Building with CUDA. Downloading windows dependencies... opencv_310.zip already exists. caffe3rdparty_2018_06_26.zip already exists. caffe_2018_01_18.zip already exists. Windows dependencies downloaded. Adding Example Calibration Adding Example OpenPoseDemo Adding Example 1_custom_post_processing Adding Example 1_body_from_image Adding Example 2_whole_body_from_image Adding Example 3_keypoints_from_image_configurable Adding Example 4_asynchronous_loop_custom_input_and_output Adding Example 5_asynchronous_loop_custom_output Adding Example 6_synchronous_custom_postprocessing Adding Example 7_synchronous_custom_input Adding Example 8_synchronous_custom_output Adding Example 9_synchronous_custom_all Adding Example pose_1_extract_from_image Adding Example pose_2_extract_pose_or_heatmat_from_image Adding Example thread_1_openpose_read_and_display Adding Example thread_2_user_processing_function Adding Example thread_3_user_input_processing_and_output Adding Example thread_4_user_input_processing_output_and_datum Download the models. Downloading BODY_25 model... Model already exists. Not downloading body (COCO) model Not downloading body (MPI) model Downloading face model... Model already exists. Downloading hand model... Model already exists. Models Downloaded. Configuring done


CMake generation log Building with CUDA. Downloading windows dependencies... opencv_310.zip already exists. caffe3rdparty_2018_06_26.zip already exists. caffe_2018_01_18.zip already exists. Windows dependencies downloaded. Adding Example Calibration Adding Example OpenPoseDemo Adding Example 1_custom_post_processing Adding Example 1_body_from_image Adding Example 2_whole_body_from_image Adding Example 3_keypoints_from_image_configurable Adding Example 4_asynchronous_loop_custom_input_and_output Adding Example 5_asynchronous_loop_custom_output Adding Example 6_synchronous_custom_postprocessing Adding Example 7_synchronous_custom_input Adding Example 8_synchronous_custom_output Adding Example 9_synchronous_custom_all Adding Example pose_1_extract_from_image Adding Example pose_2_extract_pose_or_heatmat_from_image Adding Example thread_1_openpose_read_and_display Adding Example thread_2_user_processing_function Adding Example thread_3_user_input_processing_and_output Adding Example thread_4_user_input_processing_output_and_datum Download the models. Downloading BODY_25 model... Model already exists. Not downloading body (COCO) model Not downloading body (MPI) model Downloading face model... Model already exists. Downloading hand model... Model already exists. Models Downloaded. Configuring done Generating done

OpenPose Output (if any)

Errors (if any)

When navigating to \openpose\examples\tutorial_api_python and executing 1_extract_pose_py :

File "1_extract_pose.py", line 21, in raise Exception ('Error: OpenPpose library could not be found. Did you enable 'BUILD_PYTHON' in CMake and have this Python script in the right folder?')

Type of Issue

You might select multiple topics, delete the rest:

  • Compilation/installation error

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here:

https://pastebin.com/pQ53bPQp

  1. OpenPose version: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from Release section (e.g., 1.2.0)? Latest GitHub code (downloaded 10-15-2018)

  2. General configuration:

    • Installation mode: CMake on Windows
    • Operating system Windows 10 Enterprise
    • Release or Debug mode? Release
    • Compiler VS15 2017 x64 -T v140
  3. Non-default settings:

    • 3-D Reconstruction module added?NO Yes: BUILD_PYTHON checked
  4. 3rd-party software:

    • Caffe version: default
    • CMake version 3.11.0
    • OpenCV version: OpenPose default (only Windows)
  5. If GPU mode issue:

    • CUDA version 9.0
    • cuDNN version9.0
    • GPU model NVIDIA GeForce GTX 750 Ti
  6. If CPU-only mode issue:

    • CPU brand & model:
    • Total RAM memory available:
  7. If Python API:

    • Python version: 2.7
    • Numpy version 1.15.2
  8. If Windows system:

    • compiled library
  9. If speed performance issue:

    • Report OpenPose timing speed based on this link.

MartinFultot avatar Oct 17 '18 12:10 MartinFultot

the same to me,but i can still run the demo

lvcoc avatar Oct 18 '18 09:10 lvcoc

Hmm..I am not sure what the error is. Can you try to build OP with Release mode and try?

Also, I am trying to work on a better version of the Python API which should be ready in a few months. It will use pybind11 which should give you all the abilities the C++ Api should have

soulslicer avatar Oct 18 '18 18:10 soulslicer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 17 '18 18:12 stale[bot]