chonyy / AI-basketball-analysis

:basketball::robot::basketball: AI web app and API to analyze basketball shots and shooting pose.
https://ai-basketball-analysis.herokuapp.com/
Other
1.02k stars 187 forks source link

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

Open yukun7273 opened 3 years ago

yukun7273 commented 3 years ago

When i run the project, i meet the image

johanode commented 2 years ago

Received the same error. Did you find a solution?

juzhongguoji commented 2 years ago

ModuleNotFoundError: No module named 'pyopenpose'

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

braveheartwills commented 2 years ago

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 openposeinit" in util.py

and then modify the _def getVideoStream in apphelper.py ,add vectorDatum as a input parameter.

That's all!

EddyLL06 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 @.

undefeatedsoul commented 1 year ago

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 commented 1 year ago

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

AgentPig commented 1 month ago

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 @.

I also encountered a similar problem, following your steps did not work, displaying the same error message. I have already practiced with you through email.