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

TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above #20140

Closed
LIMr1209 opened this issue May 5, 2019 · 13 comments

Comments

@LIMr1209
Copy link

LIMr1209 commented May 5, 2019

Traceback (most recent call last):
File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/init.py", line 2, in
from tensorboard.summary.writer.record_writer import RecordWriter # noqa F401
File "/home/tian/Desktop/ai/machine-learn/Image_recognition/tensorboard.py", line 3, in
from torch.utils.tensorboard import SummaryWriter
ImportError: cannot import name 'SummaryWriter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/tian/Desktop/ai/machine-learn/Image_recognition/tensorboard.py", line 3, in
from torch.utils.tensorboard import SummaryWriter
File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/init.py", line 4, in
raise ImportError('TensorBoard logging requires TensorBoard with Python summary writer installed. '
ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above

@LIMr1209
Copy link
Author

LIMr1209 commented May 5, 2019

tensorboard --logdir=runs
TensorBoard 1.14.0a20190504 at http://tian-ORC:6006/ (Press CTRL+C to quit)

@gaoyang07
Copy link

tensorboard --logdir=runs
TensorBoard 1.14.0a20190504 at http://tian-ORC:6006/ (Press CTRL+C to quit)

It seems that you worked? If not, maybe this link https://www.endtoend.ai/pytorch-tensorboard may help you.

@LIMr1209
Copy link
Author

LIMr1209 commented May 6, 2019

@GeniusGaryant Thank you very much 😊

@ssnl
Copy link
Collaborator

ssnl commented May 6, 2019

cc @orionr The error message is confusing. Python summary writer isn't in TensorBoard 1.14.0a20190301 (it is in TensorBoard 1.14.0a20190505)

@orionr
Copy link
Contributor

orionr commented May 6, 2019

1.14 hasn't been released yet (the above are just master commits), but will be in the near future. This is what we reference in the message. For now, people should install with pip install tb-nightly until the 1.14 release.

@orionr orionr closed this as completed May 6, 2019
@Maghoumi
Copy link

In case you've already tried pip install tb-nightly but still get the error message about TensorBoard 1.14, it could be that the TensorBoard packages in your ~/.local are older than 1.14.

This can happen if you install packages via pip install --user ... and some other packages via sudo pip install ..., which is known to mess things up.

@jphdotam
Copy link

jphdotam commented Aug 12, 2019

Also, you may have the latest tb-nightly but you will wrongly get this error message if you're missing google's protobuf.

conda install -c anaconda protobuf
conda install future

Fixed it for me.

@visionscaper
Copy link

Next to pip install tb-nightly, I had to pip install future.

@naqute
Copy link

naqute commented Dec 1, 2019

I think it's a version problem.
just run this:
pip install tensorboard==1.14.0
(not pip install tensorboard==1.14)

@goudantongxue
Copy link

Also, you may have the latest tb-nightly but you will wrongly get this error message if you're missing google's protobuf.

conda install -c anaconda protobuf
conda install future

Fixed it for me.

How to install tb-nightly? i found conda don't have this command. Do I have to use pip install tb-nightly?

@syomantak
Copy link

I think it's a version problem.
just run this:
pip install tensorboard==1.14.0
(not pip install tensorboard==1.14)

@naqute Does this work for gpu systems which are incompatible with tensorflow 1.14? My CUDA version won't support tf 1.14 :(

@naqute
Copy link

naqute commented Apr 26, 2020 via email

@vtasStu
Copy link

vtasStu commented Oct 21, 2020

tensorboard --logdir=runs
TensorBoard 1.14.0a20190504 at http://tian-ORC:6006/ (Press CTRL+C to quit)

It seems that you worked? If not, maybe this link https://www.endtoend.ai/pytorch-tensorboard may help you.

THX

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

No branches or pull requests