You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Description:
I am attempting to use OpenPose with the Python API on a Windows 11 system. I have successfully built OpenPose using Visual Studio 2017 in Release mode and configured it with CMake. However, when I run a Python script to import pyopenpose, I encounter the following error: Error importing pyopenpose: DLL load failed: The specified module could not be found.
I have verified that the required files (pyopenpose.cp37-win_amd64.pyd, openpose.dll, and all necessary dependencies) are present in their respective paths. Additionally, I used the Dependencies tool to analyze the dependencies of pyopenpose.cp37-win_amd64.pyd. While most dependencies are resolved, the openpose.dll file is flagged as "incorrect" in the Dependencies tool.
Steps I’ve Taken:
Verified that the following files exist in their respective locations:
pyopenpose.cp37-win_amd64.pyd: D:/openpose/build/python/openpose/Release
openpose.dll: D:/openpose/build/bin
CUDA/cuDNN files (e.g., cudart64_110.dll, cublas64_11.dll, cudnn64_8.dll): Added to the PATH.
Ensured that the PATH includes:
D:/openpose/build/bin
D:/openpose/build/python/openpose/Release
CUDA and cuDNN directories.
Checked the dependencies of pyopenpose.cp37-win_amd64.pyd using the Dependencies tool:
Identified openpose.dll as flagged with "incorrect."
All other dependencies, including cublas64_11.dll, cudnn64_8.dll, and OpenCV DLLs, are marked as resolved.
Rebuilt OpenPose in Release mode using Visual Studio 2017. Copied the newly built files to the appropriate locations.
Installed the required Python libraries (numpy, opencv-python) using pip in a Python 3.7 virtual environment.
Ensured that the models are present in D:/openpose/models.
System Information:
OS: Windows 11, 64-bit
OpenPose Version: 1.7.0
Python Version: 3.7 (virtual environment)
CMake Version: 3.27
CUDA Version: 11.8
cuDNN Version: 8.9
Visual Studio Version: 2017 Community Edition
Questions:
What could cause the openpose.dll to be flagged as "incorrect" in the Dependencies tool, and how can I resolve it?
Are there any specific versions of CUDA/cuDNN or additional dependencies that I may have missed during the build process?
Is there a recommended way to debug this "DLL load failed" error on Windows, especially when the paths and dependencies seem correct?
Additional Context:
Here’s my Python script for importing pyopenpose:
try:
import pyopenpose
print("pyopenpose imported successfully!")
except ImportError as e:
print("Error importing pyopenpose:", e)
Expected Outcome:
I expect to import pyopenpose successfully and start using OpenPose in Python.
Current Outcome:
The script fails with the error: DLL load failed: The specified module could not be found.
This version includes your Windows 11 operating system and Visual Studio 2017 environment. Let me know if you need further refinements.
The text was updated successfully, but these errors were encountered:
Problem Description:
I am attempting to use OpenPose with the Python API on a Windows 11 system. I have successfully built OpenPose using Visual Studio 2017 in Release mode and configured it with CMake. However, when I run a Python script to import pyopenpose, I encounter the following error:
Error importing pyopenpose: DLL load failed: The specified module could not be found.
I have verified that the required files (pyopenpose.cp37-win_amd64.pyd, openpose.dll, and all necessary dependencies) are present in their respective paths. Additionally, I used the Dependencies tool to analyze the dependencies of pyopenpose.cp37-win_amd64.pyd. While most dependencies are resolved, the openpose.dll file is flagged as "incorrect" in the Dependencies tool.
Steps I’ve Taken:
Verified that the following files exist in their respective locations:
pyopenpose.cp37-win_amd64.pyd: D:/openpose/build/python/openpose/Release
openpose.dll: D:/openpose/build/bin
CUDA/cuDNN files (e.g., cudart64_110.dll, cublas64_11.dll, cudnn64_8.dll): Added to the PATH.
Ensured that the PATH includes:
D:/openpose/build/bin
D:/openpose/build/python/openpose/Release
CUDA and cuDNN directories.
Checked the dependencies of pyopenpose.cp37-win_amd64.pyd using the Dependencies tool:
Identified openpose.dll as flagged with "incorrect."
All other dependencies, including cublas64_11.dll, cudnn64_8.dll, and OpenCV DLLs, are marked as resolved.
Rebuilt OpenPose in Release mode using Visual Studio 2017. Copied the newly built files to the appropriate locations.
Installed the required Python libraries (numpy, opencv-python) using pip in a Python 3.7 virtual environment.
Ensured that the models are present in D:/openpose/models.
System Information:
OS: Windows 11, 64-bit
OpenPose Version: 1.7.0
Python Version: 3.7 (virtual environment)
CMake Version: 3.27
CUDA Version: 11.8
cuDNN Version: 8.9
Visual Studio Version: 2017 Community Edition
Questions:
What could cause the openpose.dll to be flagged as "incorrect" in the Dependencies tool, and how can I resolve it?
Are there any specific versions of CUDA/cuDNN or additional dependencies that I may have missed during the build process?
Is there a recommended way to debug this "DLL load failed" error on Windows, especially when the paths and dependencies seem correct?
Additional Context:
Here’s my Python script for importing pyopenpose:
python
Copy
Edit
import sys
import os
Append OpenPose library paths
sys.path.append(r'D:/openpose/build/python/openpose/Release')
os.environ['PATH'] += ';' + r'D:/openpose/build/bin'
try:
import pyopenpose
print("pyopenpose imported successfully!")
except ImportError as e:
print("Error importing pyopenpose:", e)
Expected Outcome:
I expect to import pyopenpose successfully and start using OpenPose in Python.
Current Outcome:
The script fails with the error: DLL load failed: The specified module could not be found.
This version includes your Windows 11 operating system and Visual Studio 2017 environment. Let me know if you need further refinements.
The text was updated successfully, but these errors were encountered: