Useful or not, from you.
tensorflow module 'tensorflow' has no attribute 'ConfigProto'
import tensorflow as tf
import os
config = tf.ConfigProto()

AttributeError: module 'tensorflow' has no attribute 'ConfigProto'
That's a useful answer
Without any help

I guess you're using tensorflow 2.x. In that case, use tf.compat.v1.ConfigProto() instead.