-
Notifications
You must be signed in to change notification settings - Fork 862
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
Cannot import SummaryWriter #20
Comments
Hi, please post the result of 'pip freeze'. thanks
Manuel <notifications@github.com>於 2017年8月25日 週五,上午5:06寫道:
When I try to do:
from tensorboard import SummaryWriter I get an error saying ImportError:
cannot import name 'SummaryWriter'
After looking inside conda packages I found out that in the folder
~/anaconda3/lib/python3.6/site-packages/tensorboard/ there is no
SummaryWriter, instead, I found it in the folder [...]/tensorboardX.
Thus, I changed to from tensorboardX import SummaryWriter getting a new
error when logging a scalar value that says TypeError: Parameter to
MergeFrom() must be instance of same class: expected Summary got Summary.
for field Event.summary
Any ideas of why is this happening?
Thanks in advance,
Manu.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#20>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AB6ZS4LEkci4pnWSs2QNGBC2g1QAvf8Tks5sbeXGgaJpZM4PB79p>
.
--
iPhoneから送信
|
That's the ouput
|
[dexter@Z97X ~/anaconda3/lib/python3.6/site-packages/tensorboard]$ l
crc32c.py event_file_writer.py __init__.py record_writer.py summary.py x2num.py
embedding.py graph.py __pycache__/ src/ writer.py
[dexter@Z97X ~/anaconda3/lib/python3.6/site-packages/tensorboard]$ pip freeze|grep pytorch
tensorboard-pytorch==0.7.1
[dexter@Z97X ~/anaconda3/lib/python3.6/site-packages/tensorboard]$
after `pip install tensorflow-tensorboard==0.1.4`
[dexter@Z97X ~/anaconda3/lib/python3.6/site-packages/tensorboard]$ l
backend/ db.py graph.py pip_package/ __pycache__/ summary.py webfiles.zip*
crc32c.py embedding.py __init__.py plugins/ record_writer.py util.py writer.py
data_compat.py event_file_writer.py main.py plugin_util.py src/ version.py x2num.py The first situation Could you try uninstall tensorboard-pytorch 0.7.1, tensorflow then install tensorboardX (0.6.9) and tensorflow (1.3) and see what happens? Thanks |
Seems to be working after uninstalling tensorboard-pytorch and installing tensorboardX. Thanks! |
Tested in depth, every functions seems to work perfect! (even adding a graph! 👍 ) Thanks, this can be closed! |
When I try to do:
from tensorboard import SummaryWriter
I get an error sayingImportError: cannot import name 'SummaryWriter'
After looking inside conda packages I found out that in the folder
~/anaconda3/lib/python3.6/site-packages/tensorboard/
there is no SummaryWriter, instead, I found it in the folder[...]/tensorboardX
. Thus, I changed tofrom tensorboardX import SummaryWriter
getting a new error when logging a scalar value that saysTypeError: Parameter to MergeFrom() must be instance of same class: expected Summary got Summary. for field Event.summary
Any ideas of why is this happening?
Thanks in advance,
Manu.
The text was updated successfully, but these errors were encountered: