After installing protobuf 3.20 & restarting as per instructions, the following error occurs on the import cell:
ImportError: cannot import name ‘runtime_version’ from ‘google.protobuf’ (/usr/local/lib/python3.12/dist-packages/google/protobuf/_init_.py)
Apparently, the “runtime_version” is available only in later version. Using the latest protobuf, results in unresolved references (probably due to dependencies deprecated after 3.20).
Any suggestions on how to successfully run this lab are most wecome.
Thanks, Matthew
@matthew_tucker
can you post screenshot of what error you got, earlier one had to pip install tf, keras and protobuf version, but that was long time back as staff had updated the changes.
can you also check on which version is tf and keras version your codes are running? chances are one of their versions must have caused this conflicting output.
Regards
Dr. Deepti
are you running codes in course provided colab? oe your local colab environment?
instead of importing, you need to
!pip install protobuf==3.20.*
let me know if this resolved your issue.
Regards
Dr. Deepti
running in course provided colab, same error with 3.20.*
please post screenshot of what you are getting, so 8 can report to staff.
Also I hope you’re pip installing and not importing.
add these pip install
!pip install tensorflow==2.8.0 --quiet
!pip install keras==2.8.0 --quiet
now does it run? let us know
update: i have informed the concerned person.
Hi. This is a Colab environment issue and we’re looking into it. Will update here once it’s fixed. Thank you for reporting!
Great! Looking forward to the results of yr investigation.
Hi. This is now fixed. Please reload the lab from the classroom to see the changes. Thanks!
Looks like yr fix did the trick. Thanks!
Great! Glad it works for you!