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

Error when using Mediapipe: numpy.core.multiarray failed to import #185

Open
gj1342 opened this issue Aug 31, 2024 · 1 comment
Open

Error when using Mediapipe: numpy.core.multiarray failed to import #185

gj1342 opened this issue Aug 31, 2024 · 1 comment

Comments

@gj1342
Copy link

gj1342 commented Aug 31, 2024

Describe the bug
Python: Traceback (most recent call last):
File "", line 1232, in handle_fromlist
File "", line 241, in call_with_frames_removed
File "C:\Users\ACER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlendArMocap\src\cgt_mediapipe\cgt_mp_core\cv_stream.py", line 4, in
import cv2
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\cv2_init
.py", line 181, in
bootstrap()
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\cv2_init
.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: numpy.core.multiarray failed to import

To Reproduce
Steps to reproduce the behavior:

  1. Go to the sidebar and click BlendAR
  2. Detect Webcam with 0 slot and 4 value Key Step
  3. Target Hands and press start detection

Expected behavior
OpenCV will start and detect my hands

Screenshots
Always copy the log message from the system console if an error occurs. Do not create screenshots of error messages. If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Blender VersionL Blender 4.2
  • BlendArMocap Version: 1.6.1
@WolfgangNS
Copy link

I had the similar issue, only with movie instead of webcam. While I did try some miscellaneous fixes (run as administrator, install opencv-python), ultimately my fix was just to specify the file path. Easy as that.

image

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

No branches or pull requests

2 participants