AttributeError str object has no attribut [How to Solve]

Error condition

# model_config = json.loads(model_config.decode(‘utf-8‘)) 
AttributeError: ‘str‘ object has no attribut

Because of tensorflow 2.1.0 support h5py< 3.0.0, while tensorflow will automatically install h5py 3.1.0 after installation
just run the following command:

pip install tensorflow h5py == 2.10.0

Read More: