title: How to resolve this Mediapipe TypeError?
body: <p>Exception has occurred: TypeError
  Descriptors cannot not be created directly.
  If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc &gt;= 3.19.0.
  If you cannot immediately regenerate your protos, some other possible workarounds are:</p>
  <ol>
  <li>Downgrade the protobuf package to 3.20.x or lower.</li>
  <li>Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).</li>
  </ol>
  <p>More information: <a href="https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates" rel="nofollow noreferrer">https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates</a>
  File &quot;C:\STUFF\Code\Computer Vision\HandTrackingMin.py&quot;, line 2, in 
  import mediapipe as mp
  This is the debugger output. How to resolve this?</p>
  <p>The code is:</p>
  <pre><code>import cv2
  import mediapipe as mp
  import time
  
  cap = cv2.VideoCapture(0)
  
  mpHands = mp.solutions.hands
  hands = mpHands.Hands()
  mpDraw = mp.solutions.drawing_utils
  
  pTime = 0
  cTime = 0
  
  while True:
      success, img = cap.read()
      imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
      results = hands.process(imgRGB)
  
      if results.multi_hand_landmarks:
          for handLms in results.multi_hand_landmarks:
              mpDraw.draw_landmarks(img, handLms, mpHands.HAND_CONNECTIONS)
          
      cTime = time.time()
      fps = 1/(cTime-pTime)
      pTime = cTime
  
      cv2.putText(img, str(int(fps)), (10,70), cv2.FONT_HERSHEY_PLAIN, 3, (255,0,255), 3)
  
      cv2.imshow(&quot;Image&quot;, img)
      cv2.waitKey(1)
  </code></pre>