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.

ImportError: cannot import name 'run_main' - Unable to launch tensorboard

See original GitHub issue
(DL) ♦ ~ / ➞  tensorboard
/Users/carbon/Dev/anaconda/envs/DL/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Traceback (most recent call last):
  File "/Users/carbon/Dev/anaconda/envs/DL/bin/tensorboard", line 7, in <module>
    from tensorboard.main import run_main
ImportError: cannot import name 'run_main'

I built Tensorflow from the latest 1.5.0rc0 release.

tensorflow (1.5.0rc0)
tensorflow-tensorboard (0.1.8)

Referencing: https://github.com/tensorflow/tensorflow/issues/16011

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

11reactions
nfeltcommented, Jan 18, 2018

This is due to a mismatch in the version of tensorboard installed versus the version of tensorflow; run_main is not present until tensorflow-tensorboard >= 0.4.0rc1. The actual 1.5.0 tensorflow release should have a corrected version specifier that updates tensorboard appropriately on install.

For now, doing a manual pip install -U tensorflow-tensorboard==0.4.0rc3 should resolve this problem. You can also do pip install tb-nightly as recommended above.

4reactions
MikalaiDrabovichcommented, Jan 18, 2018

A workaround that worked for me - running tensorboard directly, i.e

python3 /usr/local/lib/python3.5/dist-packages/tensorboard/main.py --logdir=/tmp/

Maybe helpful for someone else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensorboard cannot import name `run_main` - Stack Overflow
I am getting this error regardless of whether I provide a log directory. What is the fix and what can I do to...
Read more >
Problems lauching gcp cluster - Ray Core
The file script_to_run.py has the python code that I want to run and looks something like this: import ray import tensorflow import numpy...
Read more >
Visualize experiments with TensorBoard - Azure Machine ...
Launch TensorBoard to visualize experiment job histories and identify potential areas for hyperparameter tuning and retraining.
Read more >
Artificial Intelligence & Deep Learning | Any one using tensorflow 1.1 ...
from tensorflow.examples.tutorials.mnist import input_data ... tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) ... ImportError: cannot import name ...
Read more >
No module named 'torch' after 4.1 upgrade
AssertionError: Tensorflow detected 0 of 4 GPUs. The Torch error is: Testing PyTorch... [CPU: 270.9 MB] Unable to import PyTorch. Run ...
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