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.

warn if both `tensorboard` and `tb-nightly` pip packages are installed

See original GitHub issue

This is a common source of inscrutable errors, because pip will happily install both pip packages even though they both ship the tensorboard python package [1], and in doing so the second one will overwrite any files from the first one: https://github.com/pypa/pip/issues/4625. This means you can easily end up with a garbled frankentensorboard package (and it gets even worse if you uninstall one of them but not both of them, since then you get a frankentensorboard with a lot of vital organs removed).

Until pip fixes this mess, it’s a fact of life, but we can at least try to warn users about this pitfall ourselves.

[1] It’s colloquial to call both of these packages, so I’m prefixing to avoid confusion. See also https://github.com/pypa/packaging.python.org/issues/106

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wchargincommented, Nov 22, 2019

Quick update: TensorBoard itself doesn’t warn you about this failure mode, but our self-diagnosis script does: https://raw.githubusercontent.com/tensorflow/tensorboard/master/tensorboard/tools/diagnose_tensorboard.py

If you run it, you’ll get a message like:

WARNING: conflicting installations: ['tb-nightly', 'tensorboard']

Suggestion: Fix conflicting installations

Conflicting package installations found. Depending on the order of installations and uninstallations, behavior may be undefined. Please uninstall ALL versions of TensorFlow and TensorBoard, then reinstall ONLY the desired version of TensorFlow, which will transitively pull in the proper version of TensorBoard. (If you use TensorBoard without TensorFlow, just reinstall the appropriate version of TensorBoard directly.)

Namely:

pip uninstall tb-nightly tensorboard
pip install tensorflow  # or `tensorflow-gpu`, or `tf-nightly`, ...

It would still be nice to do this at runtime, too, as described in this issue.

0reactions
janoshcommented, Apr 11, 2019

…but it’s a good point that at least for now it’s easy for users to arrive in this state by following our own instructions.

Exactly. This happened to me. Didn’t realize for quite some time that I had an old TB installation lying around.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tb-nightly - PyPI
TensorBoard is a suite of web applications for inspecting and understanding your TensorFlow runs and graphs. Releases prior to 1.6.0 were published under ......
Read more >
tf.keras.callbacks.TensorBoard | TensorFlow v2.11.0
TensorBoard is a visualization tool provided with TensorFlow. This callback logs events for TensorBoard, including: Metrics summary plots; Training graph ...
Read more >
install tensorflow 2 problematic - python - Stack Overflow
The best I did, I think is (in a py36 environment): pip install --upgrade --ignore-installed wrapt tensorflow==2.0.0-beta1 . Indeed, after ...
Read more >
no module named tensorboard.notebook - Google Groups
can happen if you have both `tensorboard` and `tb-nightly` installed in your environment, or if you mix Conda and Pip installations.
Read more >
tf-nightly - Python Package Health Analysis - Snyk
TensorFlow is an open source machine learning framework for everyone. For more information about how to use this package see README · Popularity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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