pytorch_Realtime_Multi-Person_Pose_Estimation icon indicating copy to clipboard operation
pytorch_Realtime_Multi-Person_Pose_Estimation copied to clipboard

ImportError: DLL load failed while importing _pafprocess

Open guilhermesurek opened this issue 5 years ago • 9 comments

Hello. I was trying to run your code, but got this ImportError. I'm using Windows 10. I followed this step "Compile the C++ postprocessing: cd lib/pafprocess; sh make.sh", it required me to install Virtual Studio with C++ libraries and compiler, and apparently got it right. When I tryied to run this demo "python demo/picture_demo.py to run the picture demo." I got that ImportError. Does anybody have any suggestions what it could be?

After running "sh make.sh" on git bash, the lib/pafprocess folder looks like this: image And after running "python demo/picture_demo.py" I got this: image

guilhermesurek avatar Sep 06 '20 17:09 guilhermesurek

Hello. I meet the similar question. But I run it with git bash,haven‘t get the pafprocess.py. So I want to get you help, Can you send your pafprocess file folder in zip or rar to me? my email [email protected] Thanks very much

adwardxue avatar Nov 20 '20 03:11 adwardxue

The first time I tried, I also had the error "from . import _pafprocess ImportError: DLL load failed while importing _pafprocess". But when I tried the second time, I had a different error : image I tried to renamed the pyd file, but it didn't work. Then I saw some messege said that we could put the pyd file in the lib path where we installed Python "\Python37\Lib\site-packages", so I put the "_pafprocess.cp37-win_amd64.pyd" there. And it works!!!

Magicyss avatar Nov 25 '20 01:11 Magicyss

Thanks. I have solved it too. But I rename it and make a _init file,it worked.

---Original--- From: "Magicy"<[email protected]> Date: Wed, Nov 25, 2020 09:44 AM To: "tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation"<[email protected]>; Cc: "Comment"<[email protected]>;"adwardxue"<[email protected]>; Subject: Re: [tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation] ImportError: DLL load failed while importing _pafprocess (#138)

The first time I tried, I also had the error "from . import _pafprocess ImportError: DLL load failed while importing _pafprocess". But when I tried the second time, I had a different error :

I tried to renamed the pyd file, but it didn't work. Then I saw some messege said that we could put the pyd file in the lib path where we installed Python "\Python37\Lib\site-packages", so I put the "_pafprocess.cp37-win_amd64.pyd" there. And it works!!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

adwardxue avatar Nov 25 '20 01:11 adwardxue

Hi everyone. @Magicyss @adwardxue can you explain please more precisely how did you fix it ? I am facing the same issue and I don't understand how you managed to fix it. Thanks !

AxelGautrand avatar Jan 05 '21 21:01 AxelGautrand

Hi everyone. @Magicyss @adwardxue can you explain please more precisely how did you fix it ? I am facing the same issue and I don't understand how you managed to fix it. Thanks !

well. In your lib/pafprocess you can find ' _pafprocess.cp37-win_amd64.pyd '. Rename it to ' _pafprocess.pyd '. Another step on my computer is needed. you can make a _init.py file in the folder. That's ok.

adwardxue avatar Jan 06 '21 01:01 adwardxue

Hi everyone. @Magicyss @adwardxue can you explain please more precisely how did you fix it ? I am facing the same issue and I don't understand how you managed to fix it. Thanks ! You need to follow the "Demo steps" in the README. After you "Compile the C++ postprocessing: cd lib/pafprocess; sh make.sh", you may find the file like"_pafprocess.cp37-win_amd64.pyd".Then you should put this pyd file into the path where you install your python packages, and try the picture_demo again.

Magicyss avatar Jan 06 '21 02:01 Magicyss

The method of @Magicyss worked for me ! Thanks again !

AxelGautrand avatar Jan 06 '21 11:01 AxelGautrand

Hello. I meet the similar question. But I run it with git bash,haven‘t get the pafprocess.py. So I want to get you help, Can you send your pafprocess file folder in zip or rar to me? my email [email protected] Thanks very much

Hello, have you got the file "_pafprocess.cp37-win_amd64.pyd"? Could you please send me a copy? Thanks a million, [email protected]

inever789 avatar Oct 12 '22 11:10 inever789

I still got this file. I have sent it to inever789. I didn't use py any more. I'm not sure when this file will be deleted in my machine. But if anyone else wants this file, feel free to connect with me. My email address is [email protected].

Magicyss avatar Oct 12 '22 12:10 Magicyss