Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ValueError: Duplicate plugins for name projector

Running tensorboard --logdir log_dir I get an error:

Traceback (most recent call last):
  File "/home/user/.local/bin/tensorboard", line 11, in <module>
    sys.exit(run_main())
  File "/home/user/.local/lib/python3.6/site-packages/tensorboard/main.py", line 64, in run_main
    app.run(tensorboard.main, flags_parser=tensorboard.configure)
  File "/home/user/.local/lib/python3.6/site-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/home/user/.local/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "/home/user/.local/lib/python3.6/site-packages/tensorboard/program.py", line 228, in main
    server = self._make_server()
  File "/home/user/.local/lib/python3.6/site-packages/tensorboard/program.py", line 309, in _make_server
    self.assets_zip_provider)
  File "/home/user/.local/lib/python3.6/site-packages/tensorboard/backend/application.py", line 161, in standard_tensorboard_wsgi
    reload_task)
  File "/home/user/.local/lib/python3.6/site-packages/tensorboard/backend/application.py", line 194, in TensorBoardWSGIApp
    return TensorBoardWSGI(plugins, path_prefix)
  File "/home/user/.local/lib/python3.6/site-packages/tensorboard/backend/application.py", line 245, in __init__
    raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector

What can be a reason of this problem?

like image 389
mrgloom Avatar asked Jul 27 '19 01:07

mrgloom


4 Answers

If you have two versions of tensorboard installed in your system,you need to uninstall one of them.

I was stuck this for hours but I finally fixed it using:

Worked like a charm: https://github.com/pytorch/pytorch/issues/22676

pip uninstall tb-nightly tensorboardX tensorboard
pip install tensorboard
like image 166
envi z Avatar answered Sep 28 '22 03:09

envi z


I ran into the same issue after installing tensorflow==2.0.0-rc2. Uninstalling tensorboard did not help.

The culprit in my case was tb-nightly package:

#python3.7 -m pip list | grep tb
tb-nightly           1.15.0a20190806

After removing the package and reinstalling TensorFlow, tensorboard started to work properly.

like image 38
user12144432 Avatar answered Sep 28 '22 02:09

user12144432


I got same error, when I had two versions of tensorboard. In my Tensorflow 2.0 environmnet, except core Tensorflow lib, I could see other libs where installed from TF 1.14 version.

Do a pip list and see what versions of tensorflow libs are there. In my system I had

...
tensorboard                   1.14.0              
tensorflow-estimator          1.14.0              
tensorflow-gpu                2.0.0rc0            
tensorflow-serving-api        1.14.0              
termcolor                     1.1.0               
tf-estimator-nightly          1.14.0.dev2019080601
...

Here is what I did:

pip uninstall tensorboard
pip install --force-reinstall tf-nightly-2.0-preview
like image 40
Mageswaran Avatar answered Sep 28 '22 02:09

Mageswaran


Run the following code if it shows two tensorboard installed on your system remove one.

import pkg_resources

for entry_point in pkg_resources.iter_entry_points('tensorboard_plugins'):
    print(entry_point.dist)
like image 41
Unnikrishnan Avatar answered Sep 28 '22 02:09

Unnikrishnan