question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'tensorboard.util' has no attribute 'PersistentOpEvaluator'

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
stephanwleecommented, Jan 2, 2019

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) then pip install tensorboard==1.12?

15reactions
kenpachiiicommented, Dec 30, 2018

I got it working with the following steps:

  1. pip uninstall tensorflow
  2. pip uninstall tensorboard
  3. go to site-packages and remove tensorflow/tensorboard folders
  4. Reinstalled tensorflow - pip 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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'tensorboard.util' has no attribute ...
AttributeError : module 'tensorboard.util' has no attribute 'PersistentOpEvaluator' , when trying to use TensorBoard · python · python-3.x ...
Read more >
Module 'tensorboard.util' has no attribute 'persistent ... - AI Pool
I just installed my tensorboard, but now I get this error when I try to run something. AttributeError: module 'tensorboard.util' has no ......
Read more >
AttributeError: module 'tensorboard.util' has no attribute ...
在服务器中输入tensorboard --logdir path 提示如下错误. AttributeError: module 'tensorboard.util' has no attribute 'PersistentOpEvaluator'.
Read more >
AttributeError: module 'tensorboard.util' has no attribute ... - 简书
tensorboard看图的时候出现这样的错误 AttributeError: module 'tensorboard.util' has no attribute 'PersistentOpEvaluator' 参考了github的说法
Read more >
AttributeError: module 'tensorboard.util' has no ... - 程序员大本营
AttributeError : module 'tensorboard.util' has no attribute 'PersistentOpEvaluator'解决方案,程序员大本营,技术文章内容聚合第一站。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found