Tensorboard: Docs shouldn鈥檛 recommend installing nightly on top of stable

Created on 9 Oct 2019  路  2Comments  路  Source: tensorflow/tensorboard

I am training a model in google colab and am trying to use tensorboard for visualization. This code below is what I used to install but when I run " %tensorboard --logdir logs " I get the following errors before even running my model. This was working for me a couple days ago. Please help if you can.

!pip install -q tf-nightly-gpu-2.0-preview
%load_ext tensorboard

%tensorboard --logdir logs

ERROR: Failed to launch TensorBoard (exited with 1).
Contents of stderr:
Traceback (most recent call last):
  File "/usr/local/bin/tensorboard", line 10, in <module>
    sys.exit(run_main())
  File "/usr/local/lib/python3.6/dist-packages/tensorboard/main.py", line 64, in run_main
    app.run(tensorboard.main, flags_parser=tensorboard.configure)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 299, in run
    _ run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "/usr/local/lib/python3.6/dist-packages/tensorboard/program.py", line 220, in main
    server = self._make_server()
  File "/usr/local/lib/python3.6/dist-packages/tensorboard/program.py", line 299, in 
_make_server
    self.assets_zip_provider)
  File "/usr/local/lib/python3.6/dist-packages/tensorboard/backend/application.py", line 160, in 
standard_tensorboard_wsgi
    flags, plugin_loaders, data_provider, assets_zip_provider, multiplexer)
  File "/usr/local/lib/python3.6/dist-packages/tensorboard/backend/application.py", line 228, in 
TensorBoardWSGIApp
    return TensorBoardWSGI(tbplugins, flags.path_prefix)
  File "/usr/local/lib/python3.6/dist-packages/tensorboard/backend/application.py", line 279, in 
__init__
    raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector
awaiting tensorflower docs

Most helpful comment

Hi @davidrichards10! This happens when you have multiple copies of
TensorBoard installed in the same environment. Colab has tensorboard
installed by default; when you install tf-nightly-gpu-2.0-preview, you
also transitively install tb-nightly, which causes conflicts.

The solution is to uninstall all copies of TensorBoard and reinstall
just the one that you want:

!pip uninstall -q tensorboard tb-nightly
!pip install -q tb-nightly  # or tensorboard, but not both

I see that some of our docs and tutorials still suggest installing the
preview versions; we should remove these now that TensorFlow 2.0.0 and
TensorBoard 2.0.0 have been released. Thanks for the report!

All 2 comments

Hi @davidrichards10! This happens when you have multiple copies of
TensorBoard installed in the same environment. Colab has tensorboard
installed by default; when you install tf-nightly-gpu-2.0-preview, you
also transitively install tb-nightly, which causes conflicts.

The solution is to uninstall all copies of TensorBoard and reinstall
just the one that you want:

!pip uninstall -q tensorboard tb-nightly
!pip install -q tb-nightly  # or tensorboard, but not both

I see that some of our docs and tutorials still suggest installing the
preview versions; we should remove these now that TensorFlow 2.0.0 and
TensorBoard 2.0.0 have been released. Thanks for the report!

solved for me. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KylePiira picture KylePiira  路  4Comments

hadim picture hadim  路  4Comments

decentralion picture decentralion  路  3Comments

smatsumori picture smatsumori  路  4Comments

OverLordGoldDragon picture OverLordGoldDragon  路  3Comments