It seems that your protobuf version is incompatible with TensorFlow 2.0. You can check if you're using version 3.6.0. If not, try running:
pip uninstall protobuf pip install protobuf==3.6.0
Then run again your code