Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed Duplicate plugins for name projector error #2759

Closed
wants to merge 2 commits into from
Closed

fixed Duplicate plugins for name projector error #2759

wants to merge 2 commits into from

Conversation

Biswajee
Copy link

  • Motivation for changes
    Running %tensorboard --logdir logs in current version of tensorboard_in_notebooks.ipynb results in:
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
  • Technical description of changes

The error is described by @wchargin : 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.

Reference to discussion in PR: #2748

Removing pip installs of multiple versions of tensorboard solves the issue.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

@@ -4,7 +4,6 @@
"metadata": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the behavior of load_data() change? If not, what is the cause of the output cell change?


Reply via ReviewNB

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there is no change to behavior of load_data(). The current notebook has !pip install -q tf-nightly-2.0-preview which is not recommended according to #2748. I have only removed that line from the notebook. This will not create errors due to duplicate plugins. Please see this demo for reproducing the error: https://youtu.be/8mOtyX6juZQ.

@@ -4,7 +4,6 @@
"metadata": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please commit the notebook from the clean state? Most users won't be seeing this message.


Reply via ReviewNB

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I made a new PR with the clean state of the notebook. I'm sorry that I had to delete this PR since there were to many commits and I didn't want to make multiple merges for a minor change. The new PR is here: #2803. Please, look into that.

Also, sorry for not being responsive.

@fonnesbeck
Copy link

Hi, what is the status of this fix? I'm still seeing this problem in nightlies.

@ricardodeazambuja
Copy link

I'm having this problem right now using google colab and tensorflow-1.15.2. It used to work before, less than two months ago. The only difference I can see is that now colab is using tensorflow 2.2-rc?? as default. However, I ran %tensorflow_version 1.x at the very beginning of the notebook and it shows everywhere as 1.15.2 (even when I run !python -c "import tensorflow as tf; print(tf.__version__)"). Therefore I suppose it's a bug with %tensorflow_version 1.x.

@wchargin
Copy link
Contributor

wchargin commented Apr 2, 2020

@ricardodeazambuja: Yes, %tensorflow_version 1.x has a bug that causes
%tensorboard to not work at all, due to a error that’s similar to this
one but different: “Duplicate plugins for name 'whatif'”. As far as I
can tell, the “Duplicate plugins for name 'projector'” issue is not a
problem with %tensorflow_version 1.x: the %tensorboard magic works
fine after uninstalling tensorboard-plugin-wit. You can follow #3460
for updates on this issue.

It looks like this patch is pretty stale. The current version of the
notebook doesn’t have any pip installs, and does work in Colab without
any patches, as long as you don’t set %tensorflow_version 1.x. So this
pull request can be closed just as #2803 was.

@wchargin wchargin closed this Apr 2, 2020
@keremakinli
Copy link

This problem occurred to me using tf-nightly but the stable version doesn't encounter the problem.

@ghost
Copy link

ghost commented Apr 3, 2020

I don't get the fix exactly? Don't use TF 1x, but what if i want to use that version, for stable? My tensorboard just stopped working since a few days because of this bug? Is there a clear fix for it, if not an example?

@eepishin
Copy link

eepishin commented Apr 6, 2020

@ricardodeazambuja: Yes, %tensorflow_version 1.x has a bug that causes
%tensorboard to not work at all, due to a error that’s similar to this
one but different: “Duplicate plugins for name 'whatif'”. As far as I
can tell, the “Duplicate plugins for name 'projector'” issue is not a
problem with %tensorflow_version 1.x: the %tensorboard magic works
fine after uninstalling tensorboard-plugin-wit. You can follow #3460
for updates on this issue.

It looks like this patch is pretty stale. The current version of the
notebook doesn’t have any pip installs, and does work in Colab without
any patches, as long as you don’t set %tensorflow_version 1.x. So this
pull request can be closed just as #2803 was.

I had an exception “Duplicate plugins for name 'whatif'”, 'pip uninstall tensorboard-plugin-wit' solved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants