Tensorboardx: Not compatible with tensorflow 1.3?

Created on 22 Aug 2017  路  7Comments  路  Source: lanpa/tensorboardX

After I installed tensorflow 1.3 ,tensorboard can be used in terminal
But after I installed tensorboard-pytorch, it can not work:

Traceback (most recent call last):
  File "/usr/local/bin/tensorboard", line 7, in <module>
    from tensorboard.main import main
ImportError: No module named 'tensorboard.main'

Most helpful comment

@nsknsl , @pnavarre I just uploaded https://pypi.python.org/pypi/tensorboardX

from tensorboardX import SummaryWriter

This one should be fine :)

All 7 comments

Which command triggered the error message?
I am using tensorboard-pytorch v0.7 from pip, TF v1.3 and it looks fine.
Please also provide the output of pip freeze, thanks.

I think the problem is that they moved Tensorboard to a dependency of TF 1.3 (https://pypi.python.org/pypi/tensorboard). "tensorflow-pytorch" and the original "tensorboard" both use the same name when using import. With both modules installed I get the following error:

from tensorboard import SummaryWriter
Traceback (most recent call last):

File "", line 1, in
from tensorboard import SummaryWriter

ImportError: cannot import name 'SummaryWriter'

@pnavarre The link you provided is not an official package. The official package comes with TF1.3 is https://pypi.python.org/pypi/tensorflow-tensorboard .

Sorry, my bad. I did install the official (tensorflow-tensorboad) and got the error above.

@pnavarre please post the output of pip freeze. BTW do you use anaconda environment or not?

@nsknsl , @pnavarre I just uploaded https://pypi.python.org/pypi/tensorboardX

from tensorboardX import SummaryWriter

This one should be fine :)

Thanks!

Was this page helpful?
0 / 5 - 0 ratings