BlendArMocap icon indicating copy to clipboard operation
BlendArMocap copied to clipboard

ImportError: cannot import name 'face_detection_pb2' from 'mediapipe.modules.face_detection' (unknown location)

Open SamoFran opened this issue 2 years ago • 4 comments
trafficstars

Had problems with installing dependencies. after 8 painful hrs...I resolved that problem But low and behold....new problem arrived, cuz why not...

image

Now i cant run "Detect clip" nor "Webcam detect" because of this. Help me.....pls.

SamoFran avatar Feb 21 '23 16:02 SamoFran

This seems like an internal mediapipe package error. So prolly the mediapipe package you are using is corrupted. How did you install mediapipe, which version is it? What's you OS?

cgtinker avatar Feb 22 '23 10:02 cgtinker

This seems like an internal mediapipe package error. So prolly the mediapipe package you are using is corrupted. How did you install mediapipe, which version is it? What's you OS?

I'm using Windows 10 Pro , Blender 2.93 Installed mediapipe trough "install dependencies" Even tho it did not work first couple of times

I kinda repeated it with every possible version of BlenderArMocap unitl it magically fixed it self ( always had one or two dependencies missing and. Or not installed )

I had to copy lib from C disk to Blender Lib for PIP to work

SamoFran avatar Feb 22 '23 12:02 SamoFran

okay, short recap - you are using windows, you were able to to install the dependencies but somehow mediapipe is corrupted.

Which blendarmocap version and which blender version are you using?

Can you also preform the "gather information" part form the documentation and let me know the output? Consider to also run the following in the terminal after figuring out blenders python exe path: 'blender python executable' -m pip freeze

Maybe you are using a mediapipe version that causes issues.

ed: what you also can just try is to find blenders python exe and then downgrade mediapipe:

'blender python executable' -m pip uninstall mediapipe
'blender python executable' -m pip install mediapipe==0.8.10

cgtinker avatar Feb 22 '23 12:02 cgtinker

okay, short recap - you are using windows, you were able to to install the dependencies but somehow mediapipe is corrupted.

Which blendarmocap version and which blender version are you using?

Can you also preform the "gather information" part form the documentation and let me know the output? Consider to also run the following in the terminal after figuring out blenders python exe path: 'blender python executable' -m pip freeze

Maybe you are using a mediapipe version that causes issues.

ed: what you also can just try is to find blenders python exe and then downgrade mediapipe:

'blender python executable' -m pip uninstall mediapipe
'blender python executable' -m pip install mediapipe==0.8.10

Will try. Thanks for that It does work on version 3.0+ of blender Without any problem...it was a last ditch effort Tried it after everything else i knew.

SamoFran avatar Feb 22 '23 13:02 SamoFran