mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

ImportError: DLL load failed while importing _framework_bindings: The specified module could not be found.

Open byron-ojua opened this issue 3 years ago • 6 comments

System information

  • Windows 11 Pro - Version 21H2; Build 22000.856:
  • Resource base intel core i5 7th Gen, 16Gb RAM
  • Python 3.10.6:
  • Installed using pip:
  • IDE is PyCharm community 2022.2:
  • MP version 0.8.10.1:
  • OpenCV version 4.6.0.66:

I am trying to use mediapipe with OpenCV to do some hand tracking, but I am getting the following error. I have seen many threads with this error, but none of the solutions have worked for me.:

Provide the exact sequence of commands / steps that you executed before running into the problem: pip install mediapipe pip install openCV-python pip install --upgrade pip pip install msvc-runtime pip install setuptools --upgrade --ignore-installed

Complete Logs: "C:\Users\Byron Ojua-Nice\PycharmProjects\HandTracking\venv\Scripts\python.exe" "C:/Users/Byron Ojua-Nice/PycharmProjects/HandTracking/main.py" Traceback (most recent call last): File "C:\Users\Byron Ojua-Nice\PycharmProjects\HandTracking\main.py", line 2, in import mediapipe as mp File "C:\Users\Byron Ojua-Nice\PycharmProjects\HandTracking\venv\lib\site-packages\mediapipe_init_.py", line 16, in from mediapipe.python import * File "C:\Users\Byron Ojua-Nice\PycharmProjects\HandTracking\venv\lib\site-packages\mediapipe\python_init_.py", line 17, in from mediapipe.python._framework_bindings import resource_util ImportError: DLL load failed while importing _framework_bindings: The specified module could not be found.

Process finished with exit code 1

byron-ojua avatar Sep 05 '22 18:09 byron-ojua

Hi @byron-ojua, Did you able to install MediaPipe on windows as mentioned here. If Yes, Could you please try this workaround mentioned in the https://github.com/google/mediapipe/issues/1839#issuecomment-817253475 and https://github.com/google/mediapipe/issues/1839#issuecomment-817363779. Thank you!

kuaashish avatar Sep 06 '22 06:09 kuaashish

Hello @kuaashish I followed the MediaPipe in Python steps. I tried the two things you linked before I posted. All of the videos I was watching were saying that for Python, I just had to use pip to do the install. Are all of those programs in the steps you provided required to make MediaPipe work? I am seeing like 10GB of downloads.

byron-ojua avatar Sep 06 '22 08:09 byron-ojua

Hi @byron-ojua, Yes, Please follow the official documentation to build MediaPipe from source Or depends on use case you could follow the Python Solution API example code of Hands as mentioned in the documentation. Thank you!

kuaashish avatar Sep 06 '22 09:09 kuaashish

I am still getting the same error.

byron-ojua avatar Sep 07 '22 22:09 byron-ojua

Hi @byron-ojua, Please try the suggestion mentioned in the similar SO issue and revert back if encounter the same error. Thank you!

kuaashish avatar Sep 08 '22 08:09 kuaashish

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Sep 15 '22 09:09 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Sep 23 '22 11:09 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Sep 23 '22 11:09 google-ml-butler[bot]