Skip to content

Tensorboard issue with the official docker image - 1.5.0-rc0-gpu-py3 #16011

Closed

Description

@DEKHTIARJonathan

Hello everyone,

I have the exact same issue as stated here: #14855
And on the official tensorboard repository: tensorflow/tensorboard#812

The fact that I am using the official Docker Image and I didn't build anything from scratch.

tensorflow/tensorflow 1.5.0-rc0-gpu-py3 9e770d59b136 6 days ago 2.85GB

What I get when I try to launch Tensorboard as usual:

# tensorboard --logdir=log_directory
/usr/local/lib/python3.5/dist-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 "/usr/local/bin/tensorboard", line 7, in <module>
    from tensorboard.main import run_main
ImportError: cannot import name 'run_main'

Resolution Idea:
I noticed that by simply running the command: pip install tensorboard inside the container the problem is solved and I am able to normally launch Tensorboard.

Thanks a lot for the help,

All the best,

Jonathan

Activity

  1. changed the title [-]Tensorboard issue with the official docker image - 1.5.0rc[/-] [+]Tensorboard issue with the official docker image - 1.5.0-rc0-gpu-py3[/+] on Jan 10, 2018
  2. added
    type:build/install
    on Jan 10, 2018
  3. alanpurple commented on Jan 13, 2018

    @alanpurple
    Contributor

    @shivaniag this is not about tensorboard, just import tensorflow also cause same deprecated warning message from h5py

    and issubdtype is in
    https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/framework/dtypes.py

  4. DEKHTIARJonathan commented on Jan 13, 2018

    @DEKHTIARJonathan
    ContributorAuthor

    This is not a deprecation issue. This is real issue

  5. alanpurple commented on Jan 13, 2018

    @alanpurple
    Contributor

    @DEKHTIARJonathan sorry I haven't read it carefully
    and this is the only issue the deprecation is referred

  6. yazabaza commented on Jan 14, 2018

    @yazabaza

    I observe the same problem with plain Tensorflow, not using Docker or Tensorboard. Appears to be in h5py.

  7. DEKHTIARJonathan commented on Jan 14, 2018

    @DEKHTIARJonathan
    ContributorAuthor

    @yazabaza this has nothing to do with the issue related here

  8. yazabaza commented on Jan 14, 2018

    @yazabaza

    Not clear to me how it has nothing to do with the issue if I am observing exactly the same error.

    /usr/local/lib/python3.5/dist-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
    

    If you are saying it's an issue in h5py, I get that.

  9. DEKHTIARJonathan commented on Jan 14, 2018

    @DEKHTIARJonathan
    ContributorAuthor

    The warning in h5py is unrelated with this issue.

    The import error (and not the warning) is generated by TensorBoard, not h5py.

    So I repeat, the deprecation warning in h5py IS NOT an issue, and it has nothing to do with the issue in TensorBoard.

  10. neilpanchal commented on Jan 14, 2018

    @neilpanchal

    @DEKHTIARJonathan I second, opened an new issue here: tensorflow/tensorboard#877

  11. zh794390558 commented on Jan 17, 2018

    @zh794390558
    Contributor

    the official docker image - 1.5.0-rc1-gpu has the same problem.

  12. caisq commented on Jan 18, 2018

    @caisq
    Contributor
  13. caisq commented on Jan 18, 2018

    @caisq
    Contributor
  14. daniellowell commented on Jan 18, 2018

    @daniellowell

    I get this error as well when I just do this from a tensorflow session and a python console:

    $ python 
    Python 3.5.3 (default, Sep 14 2017, 22:58:41) 
    [GCC 6.3.0 20170406] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow
    /usr/lib/python3/dist-packages/h5py/__init__.py:34: 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
    >>> 
    
    

    I tried the workarounds from above, but I think it is coming from elsewhere in either python or TF.

  15. DEKHTIARJonathan commented on Jan 18, 2018

    @DEKHTIARJonathan
    ContributorAuthor

    @daniellowell please read carefully the discussion, it's really anoying to repeat over and over the same thing: #16011 (comment)

  16. aselle commented on Jan 18, 2018

    @aselle
    Contributor

    @jart, could your team PTAL?

  17. added
    stat:awaiting tensorflower
    on Jan 18, 2018
  18. jart commented on Jan 19, 2018

    @jart
    Contributor

    A fix was pushed a few hours ago that works towards solving this issue: 34a589e

    I'd like to close out this issue in favor of tensorflow/tensorboard#877.

  19. jart commented on Jan 19, 2018

    @jart
    Contributor

    Also note the workaround reported by @MikalaiDrabovich:

    python3 /usr/local/lib/python3.5/dist-packages/tensorboard/main.py --logdir=/tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stat:awaiting tensorflowertype:build/install

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions