Skip to content

tensorboard ImportError: cannot import name 'run_main' #14855

Closed

Description

@XiaXuehai

I install the tensorflow on Mac from source.
but when I run the tensorboard,and got a error like this

Pro-2:Desktop xxh$ tensorboard
Traceback (most recent call last):
File "/Users/xxh/anaconda3/bin/tensorboard", line 7, in
from tensorboard.main import run_main
ImportError: cannot import name 'run_main'`

How to fix it?

Activity

  1. printdhruv commented on Nov 24, 2017

    @printdhruv
    Contributor

    (1) You can't import it. Please go to here for support since it's not a bug.
    (2) Please fill ISSUE_TEMPLATE before raising an issue.

  2. bigpalm82 commented on Nov 27, 2017

    @bigpalm82

    It could be helpful to run a script directly, e.g. "python /usr/local/lib/python2.7/dist-packages/tensorboard/main.py --logdir=~~~"

  3. tatatodd commented on Nov 28, 2017

    @tatatodd
    Contributor
  4. timmolter commented on Dec 12, 2017

    @timmolter

    @XiaXuehai Did you ever figure out a fix? After building TF from source on a Mac running High Sierra, and running Tensorboard, I also get that same exact error.

  5. andychat commented on Jan 5, 2018

    @andychat

    I ran into this after building tensorflow from source. Looks to me like you do not get tensorboard automatically when you build tensorflow yourself.

    It worked for me after I built tensorboard separately from source: https://github.com/tensorflow/tensorboard.

  6. opeide commented on Mar 25, 2019

    @opeide

    I fixed this by changing the shebang at the top of the python file /usr/local/bin/tensorboard to #!/usr/bin/python3 (was just #!/usr/bin/python).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions