OS Platform and Distribution
Windows 10
Compiler version
No response
Programming Language and version
Python 3.11
Installed using virtualenv? pip? Conda?(if python)
pip download
MediaPipe version
0.10.18
Bazel version
No response
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
Downloaded the mediapipe wheel from pip, downloaded msvc-runtime wheel from pip, included them in my Blender 4.2 addon, packaged it, and tried to run it.
Complete Logs
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "C:\Users\UserName\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\mediapipe\__init__.py", line 15, in <module>
from mediapipe.python import *
File "C:\Users\UserName\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\mediapipe\python\__init__.py", line 17, in <module>
from mediapipe.python._framework_bindings import model_ckpt_util
ImportError: DLL load failed while importing _framework_bindings: A dynamic link library (DLL) initialization routine failed.
I'm hoping there's a way that I can get a Windows python 3.11 wheel for mediapipe that does not use _framework_bindings.cp311-win_amd64.pyd, even if it is a little slower, because I think that will fix my issue.
I'm trying to install Mediapipe into Blender 4.2 as part of an addon. From what I understand, Blender 4.2+ have sandboxed their addon environment, so even though I have Visual C++ Redistributable installed on my local system and can run mediapipe fine from my command line Blender doesn't recognize it. The Blender 4.2+ addons can only install python 3.11 libraries from wheels, like those you can get from pip download. I tried the pip workaround of installing msvc-runtime (downloading it as a wheel, installing it before mediapipe), but no luck there.
As far as I've been able to test this isn't a Blender bug (since other project dependencies install just fine), but rather an inability to install a Mediapipe dependency. I can provide an example Blender addon if needed.
OS Platform and Distribution
Windows 10
Compiler version
No response
Programming Language and version
Python 3.11
Installed using virtualenv? pip? Conda?(if python)
pip download
MediaPipe version
0.10.18
Bazel version
No response
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
Downloaded the mediapipe wheel from pip, downloaded msvc-runtime wheel from pip, included them in my Blender 4.2 addon, packaged it, and tried to run it.
Complete Logs
I'm hoping there's a way that I can get a Windows python 3.11 wheel for mediapipe that does not use
_framework_bindings.cp311-win_amd64.pyd, even if it is a little slower, because I think that will fix my issue.I'm trying to install Mediapipe into Blender 4.2 as part of an addon. From what I understand, Blender 4.2+ have sandboxed their addon environment, so even though I have Visual C++ Redistributable installed on my local system and can run mediapipe fine from my command line Blender doesn't recognize it. The Blender 4.2+ addons can only install python 3.11 libraries from wheels, like those you can get from
pip download. I tried the pip workaround of installingmsvc-runtime(downloading it as a wheel, installing it before mediapipe), but no luck there.As far as I've been able to test this isn't a Blender bug (since other project dependencies install just fine), but rather an inability to install a Mediapipe dependency. I can provide an example Blender addon if needed.