에러

[PYTHON] mediapipe : Descriptors cannot not be created directly

람쥐썬더123 2022. 6. 9. 14:08

matplotlib으로 커널 자꾸 떨어져서 결국 환경 재설정 후에 mediapipe 재설치 했더니 다음과 같은 오류가 뜬다

 

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 >= 3.19.0.

 

직관적으로 protoc <= 이놈 버전이 안맞는것 같았는데 찾아보니 간단히 해결되는 문제였따

 

!pip install --upgrade protobuf==3.20.0

 

버전 업그레이드 해주고 커널 재시작 하면 잘 된당ㅎㅎ.. 

 

 

 

---참고---

2022년 5월 먼가 업데이트 했다고 하는데 먼진 잘 모르지만..

 

https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates