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

No module named 'OpenPose.Release.pyopenpose' #17

Open
yukun7273 opened this issue May 13, 2021 · 8 comments
Open

No module named 'OpenPose.Release.pyopenpose' #17

yukun7273 opened this issue May 13, 2021 · 8 comments
Labels
good first issue Good for newcomers

Comments

@yukun7273
Copy link

When i run the project, i meet the
image

@johanode
Copy link

Received the same error. Did you find a solution?

@juzhongguoji
Copy link

juzhongguoji commented Jun 23, 2022

ModuleNotFoundError: No module named 'pyopenpose'

I found same error, but similar reason. Recompile openpose, problem solved. Hope this helps.

@braveheartwills
Copy link

The same problem I met too. The solution is replace the document "pyopenpose.cp36-win_amd64" which is in the \OpenPose\Release with your own "pyopenpose" file. For example, I use "pyopenpose.cp39-win_amd64" which was generated in the openpose project before. '39'means python3.9. So then make a env with python3.9 not python3.6 said here for this project. Do not pip install -r requirments.txt if the python version is not 3.6. Delete the version information in the requirements.txt ,and then pip install it. It definitely will work.

You may meet the error about opWrapper.emplaceAndPop([Datum]). The solution is add the code

vectorDatum = op.VectorDatum([datum])
return datum, opWrapper, vectorDatum
in the end of "def openpose_init" in util.py

and then modify the def getVideoStream in app_helper.py ,add vectorDatum as a input parameter.

That's all!

@EddyLL06
Copy link

EddyLL06 commented Oct 8, 2022

82931c08c6b2d73ce8b4a8a0c1a15ba
@braveheartwills This is what I got following your steps. The import problem is fixed now, but the above problem comes up. Any idea what is happening? What should I do next?

@EddyLL06
Copy link

EddyLL06 commented Oct 8, 2022

f250215662053748a234cdd45875422
a2a4fc54117c598714f555b1c49feea
These are pictures of the code I added in util.py and app_helper.py. I don't really know much about Python, hope I did it correctly.

@braveheartwills
Copy link

Sorry I don't know how to paste pictures here, so if you haven't solved the problem, sending email to me directly is all right. My email is "wills&&sunbowtec.com" . replace && with @.

82931c08c6b2d73ce8b4a8a0c1a15ba @braveheartwills This is what I got following your steps. The import problem is fixed now, but the above problem comes up. Any idea what is happening? What should I do next?

Sorry I don't know how to paste pictures here, so if you haven't solved the problem, sending email to me directly is all right. My email is "wills&&sunbowtec.com" . replace && with @.

@chonyy chonyy added the good first issue Good for newcomers label Oct 23, 2022
@undefeatedsoul
Copy link

I also encountered the import problem of openpose, but his error message is as follows, showing that the dll loading failed: Can not find the corresponding module, do not know what solution?
image

@twobit-five
Copy link

One solution is to compile from source the OpenPose project and copy the appropriate file from below for your specific python version.

Windows:
/OpenPose/Release/pyopenpose.cp36-win_amd64.pyd
or
Linux:
/OpenPose/openpose/pyopenpose.cpython-36m-x86_64-linux-gnu.so

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

No branches or pull requests

8 participants