nicknochnack / TFODCourse

944 stars 919 forks source link

protoc problem #122

Open remrem-2022 opened 1 year ago

remrem-2022 commented 1 year ago

I got this error when i run this code !pip uninstall protobuf matplotlib -y !pip install protobuf matplotlib==3.2

my protobuf Version: 4.21.12

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 >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
remrem-2022 commented 1 year ago

i have also downgraded my protobuf but it didn't fix

remrem-2022 commented 1 year ago

i have solved this using pip install gin-config==0.1.1

ali123reza commented 1 year ago

I did that but it doesn't work for me :(

HarshitSeth-809014 commented 1 year ago

This also came with me. I used this code


!pip install protobuf==3.20 matplotlib==3.2