Dmitry.AI

How to fix «from tensorflow.python.eager import monitoring» / «cannot import name 'monitoring'»?

tensorflow-installation
tensorflow
(Dmitry Fedyuk) #1

03

1 Like
(Dmitry Fedyuk) #2

The tensorflow.python.eager.monitoring module is really absent in TensorFlow 1.x:
github.com/tensorflow/tensorflow/tree/v1.13.1/tensorflow/python/eager/monitoring.py

It was added to the TensorFlow codebase at 2019-04-05 by the following commit:

(Dmitry Fedyuk) #3

It seems that I had installed a wrong version of the tensorflow_estimator pip package: https://github.com/tensorflow/estimator
I have solved the issue my installing the proper version:

pip uninstall tensorflow_estimator
pip install -Iv tensorflow_estimator==1.13.0
(Ayaz Saiyed) #4

It worked for me ! Thank you