Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config pythonAPI in win10 error #1468

Closed
chde222 opened this issue Dec 20, 2019 · 8 comments
Closed

config pythonAPI in win10 error #1468

chde222 opened this issue Dec 20, 2019 · 8 comments
Labels

Comments

@chde222
Copy link

chde222 commented Dec 20, 2019

Errors (if any)

图片

Type of Issue

  • Question

Your System Configuration

win10 desktop computer and had run in C++ api successfully.
but when run in Pythonapi.emerge this error:
图片
please help me

@Xploit3r
Copy link

Xploit3r commented Jan 6, 2020

After the configure step in CMake GUI was completed, did you confirm that the BUILD_PYTHON flag was enabled before generating?

Maybe you could share the screenshot of the CMake GUI before you generated the build?

@patrickgre
Copy link

I have the same issue with python 3.8. On a other computer with python 3.6 it's running ...

@patrickgre
Copy link

Resolve on python 3.8 : Use os.add_dll_directory at place of os.environ['PATH']

@soulslicer
Copy link
Collaborator

soulslicer commented Mar 19, 2020

Thanks @patrickgre.

numpy/numpy#13501

@wjtscn
Copy link

wjtscn commented Mar 24, 2020

@patrickgre Thanks very...

@ghost
Copy link

ghost commented Mar 25, 2020

Resolve on python 3.8 : Use os.add_dll_directory at place of os.environ['PATH']

where I have to change this? I tried to change in 01_body_from_image.py but still have the same error as before

@connor-john
Copy link

@patrickgre

Is below the correct change for python 3.8?

if platform == "win32":
            # Change these variables to point to the correct folder (Release/x64 etc.)
            sys.path.append(dir_path + '/../../python/openpose/Release')
            os.add_dll_directory(dir_path + '/../../x64/Release')
            os.add_dll_directory(dir_path + '/../../bin')
            import pyopenpose as op

I still get the "DLL load failed while importing pyopenpose: The specified module could not be found." after the change.
I have checked other potential issues.

@vincenzomarotta
Copy link

Resolve on python 3.8 : Use os.add_dll_directory at place of os.environ['PATH']

This is the solution for anyone looking, just did that and it has finally found openpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants