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:
- Created 6 years ago
- Comments:21 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is due to a mismatch in the version of tensorboard installed versus the version of tensorflow;
run_main
is not present untiltensorflow-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 dopip install tb-nightly
as recommended above.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.