tensorboard: AttributeError: module 'tensorboard.util' has no attribute 'PersistentOpEvaluator'
Getting next error on tensorboard launch attempt:
PS C:\Users\user> tensorboard
Traceback (most recent call last):
File "c:\users\user\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\user\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\user\appdata\local\programs\python\python36\Scripts\tensorboard.exe\__main__.py", line 5, in <module>
File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\tensorboard\main.py", line 45, in <module>
from tensorboard import default
File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\tensorboard\default.py", line 38, in <module>
from tensorboard.plugins.beholder import beholder_plugin
File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\tensorboard\plugins\beholder\__init__.py", line 15, in <module>
from tensorboard.plugins.beholder.beholder import Beholder
File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\tensorboard\plugins\beholder\beholder.py", line 25, in <module>
from tensorboard.plugins.beholder import im_util
File "c:\users\user\appdata\local\programs\python\python36\lib\site-packages\tensorboard\plugins\beholder\im_util.py", line 89, in <module>
class PNGDecoder(util.PersistentOpEvaluator):
AttributeError: module 'tensorboard.util' has no attribute 'PersistentOpEvaluator'
Version:
PS C:\Users\user> pip show tensorboard
Name: tensorboard
Version: 1.12.1
Summary: TensorBoard lets you watch Tensors Flow
Home-page: https://github.com/tensorflow/tensorboard
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: c:\users\user\appdata\local\programs\python\python36\lib\site-packages
Requires: werkzeug, markdown, protobuf, six, numpy, grpcio, wheel
Required-by: tensorflow-gpu
- Windows 10, 64
- Python version 3.6
Thank you!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (1 by maintainers)
Hello everyone, thanks for reporting the issue. Which version of TensorFlow have you installed? This can happen if you have tb-nightly installed on your virtualenv then install tensorboard==1.12.x.
Like @kenpachiii put, can you try to delete tensorboad directory in site-packages (Location in
pip show tensorboard) thenpip install tensorboard==1.12?I got it working with the following steps:
pip uninstall tensorflowpip uninstall tensorboardpip install [whatever wheel package]You can find the wheel packages here for specific install types: https://www.tensorflow.org/install/pip
Note: I only stated the specific wheel package because that’s what I did.
I know this doesn’t explain the ‘why’ of the issue but it got things going for me. Hope it helps!
I got same issue. Here is how I fix it by delete tensorboard folder & tensorboard.dist.info and reinstall tensorboard with respective version according to tensorflow.
mine is running tf-gpu 1.10 win10 python 3.6.4
thanks,it do work! use pip show tensorboard and then delete all directories about tensorboard ,next reinstall a lower version of tensorboard (mine is 1.12).
Thanks, it seems the problem from tb-nightly. I uninstalled tb-nightly and reinstalled the tensorboard. Finally, it works!!!