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?
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
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.
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
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With