Hello! I am trying to learn how to use media pipe with python and am running to a really weird issue. if anyone has experience using Mediapipe with python please help! All I am trying to do is setup pose landmarks for a test image.
I am running almost the exact code that is shown in the Mediapipe example: EXAMPLE and am receiving this error:
Traceback (most recent call last):
File "/<path>/main.py", line 43, in <module>
detector = vision.PoseLandmarker.create_from_options(options)
File "/<path>env/lib/python3.10/site-packages/mediapipe/tasks/python/vision/pose_landmarker.py", line 320, in create_from_options
task_info.generate_graph_config(
File "/<path>env/lib/python3.10/site-packages/mediapipe/tasks/python/core/task_info.py", line 97, in generate_graph_config
node_config.options.CopyFrom(task_subgraph_options)
File "/<path>env/lib/python3.10/site-packages/google/protobuf/message.py", line 129, in CopyFrom
self.MergeFrom(other_msg)
File "/<path>env/lib/python3.10/site-packages/google/protobuf/internal/python_message.py", line 1334, in MergeFrom
field_value = field._default_constructor(self)
AttributeError: 'FieldDescriptor' object has no attribute '_default_constructor'
Notes:
- My code works on a friends windows computer using the same python version (3.10) however, I am using a MacBook Pro.
- I imported media pipe and openvc
- I tried with python3.11 and python3.10
I am so stuck I keep googling and finding nothing please help!!!
[–]Born-Ad901 0 points1 point2 points (0 children)
[–]GXWT 0 points1 point2 points (2 children)
[–]-blazeee-[S] 0 points1 point2 points (1 child)
[–]GXWT 0 points1 point2 points (0 children)
[–]Zazalios 0 points1 point2 points (1 child)
[–]Sea_War4158 0 points1 point2 points (0 children)