Tensorboardx: ImportError: No module named 'tensorboardX'

Created on 21 Oct 2018  Â·  10Comments  Â·  Source: lanpa/tensorboardX

I am getting the above error when on this line:
from tensorboardX import SummaryWriter

I have done the following:

  1. $ pip install tensorboardX
  2. $ pip freeze
tensorboard==1.11.0
tensorboardX==1.4
tensorflow==1.11.0

Most helpful comment

I tried on Python 3 Jupyter Notebook, the following solves ImportError: No module named 'tensorboardX'.

conda install -c conda-forge tensorboardx

https://anaconda.org/conda-forge/tensorboardx

All 10 comments

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    Linux dlvm 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u5 (2018-09-30) x86_64 GNU/Linux
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
    Google Cloud VM
  • TensorFlow installed from (source or binary):
    pip3 install --upgrade tensorflow
  • TensorFlow version: 1.11.0
  • Python version: 3.5.3
  • Installed using virtualenv? pip? conda?: pip3
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:

Describe the problem

Trying to import the tensorboardX module in a cell within Python 3 Jupyter Notebook
from tensorboardX import SummaryWriter

Received the following error:
ImportError: No module named 'tensorboardX'

Ran a pip3 freeze to check if the packages were installed:

tensorboard==1.11.0
tensorboardX==1.4
tensorflow==1.11.0

Will it work if running outside of the Python 3 Jupyter Notebook?

I tried running it on a Python 2 Jupyter Notebook - it works.

Is there anyway to get it working on a Python 3 Jupyter Notebook?

On Sat, Oct 20, 2018 at 10:22 PM Tzu-Wei Huang notifications@github.com
wrote:

Will it work if running outside of the Python 3 Jupyter Notebook?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lanpa/tensorboardX/issues/255#issuecomment-431639910,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhpqQJzqqrLPRdBGzJ53tKyz6Qx3IG8tks5unAR9gaJpZM4XyLXs
.

--

Q: Why is this email three sentences or less?
A: http://three.sentenc.es

I just tried it on Python 3 Jupyter Notebook and it works as well!

Did you fix the issue? Many thanks

On Sun, Oct 21, 2018 at 11:27 PM Edward Tiong edwardtiong.63@gmail.com
wrote:

I tried running it on a Python 2 Jupyter Notebook - it works.

Is there anyway to get it working on a Python 3 Jupyter Notebook?

On Sat, Oct 20, 2018 at 10:22 PM Tzu-Wei Huang notifications@github.com
wrote:

Will it work if running outside of the Python 3 Jupyter Notebook?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lanpa/tensorboardX/issues/255#issuecomment-431639910,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhpqQJzqqrLPRdBGzJ53tKyz6Qx3IG8tks5unAR9gaJpZM4XyLXs
.

--

Q: Why is this email three sentences or less?
A: http://three.sentenc.es

--

Q: Why is this email three sentences or less?
A: http://three.sentenc.es

Good, then I think this one can be closed.

I just tried it on Python 3 Jupyter Notebook and it works as well! Did you fix the issue? Many thanks On Sun, Oct 21, 2018 at 11:27 PM Edward Tiong edwardtiong.63@gmail.com wrote:
…
I tried running it on a Python 2 Jupyter Notebook - it works. Is there anyway to get it working on a Python 3 Jupyter Notebook? On Sat, Oct 20, 2018 at 10:22 PM Tzu-Wei Huang @.*> wrote: > Will it work if running outside of the Python 3 Jupyter Notebook? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#255 (comment)>, > or mute the thread > https://github.com/notifications/unsubscribe-auth/AhpqQJzqqrLPRdBGzJ53tKyz6Qx3IG8tks5unAR9gaJpZM4XyLXs > . > -- -------------------------------------------- Q: Why is this email three sentences or less? A: http://three.sentenc.es
-- -------------------------------------------- Q: Why is this email three sentences or less? A: http://three.sentenc.es

How did you make it work in Python 3 Jupyter Notebook? I still cannot import tensorboardX after the installation.

How did you fix the problem ???

The problem is not solved. I got the same error running in a Python 3 Jupyter notebook

@jcatanza @JOANNESUN Please open a new issue to help me identify the problem.

I tried on Python 3 Jupyter Notebook, the following solves ImportError: No module named 'tensorboardX'.

conda install -c conda-forge tensorboardx

https://anaconda.org/conda-forge/tensorboardx

Was this page helpful?
0 / 5 - 0 ratings