Notebook execution problem

Good morning, how are you? I’m having trouble with the notebook. There are dependencies that aren’t compatible with each other. I tried to fix them and couldn’t. Even Copilot gave up, hehe. I don’t know what else to try. I literally restarted the notebook many times, tried many things, but I can’t get out.
from object_detection.utils import label_map_util
from object_detection.utils import config_util
from object_detection.utils import visualization_utils as viz_utils
Now I’m getting the error: TypeError: Descriptors cannot 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).TypeError: Descriptors cannot 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:
  3. Downgrade the protobuf package to 3.20.x or lower.
  4. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

Dear @Federico_Moontero,

Are you doing your assignment on coursera platform or on your local machine?


Keep Learning AI with DeepLearning.AI - Girijesh

hi @Federico_Moontero

Can you post a screenshot of the error you are encountering.

you need to pip install the protobuf version assignment codes are looking. See a similar issue related to yours if you have same issue, then click on linked post comment on how to resolve the issue

Relative issue

Solution

Let me know if your issue is something else.

regards
DP

I managed to move forward and get the result.data, but the system shows it as if it’s useless… I’m at a standstill.

did you try to clear output, and restart the kernel, re-run the codes again (one by one) and then submit??

Also just to be careful clear your browsing history and cookies too once, in case you are confident of your codes being correct.