question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TensorFlow 2: TensorBoard import error

See original GitHub issue

wandb --version && python --version && uname

  • Weights and Biases version: 0.9.3
  • Python version: 3.6.9
  • Operating System: Linux

Description

I am trying to sync the client with TensorBoard in a Docker container with the TF2.2 base image. However, the client is unable to import TensorBoard, although I can import this package just fine. Related issue.

What I Did

I have created a minimal repository to reproduce the issue.

git clone https://github.com/pascal-hwky/wandb-tb-bug.git
cd wandb-tb-bug
./run.sh

Sample output:

wandb: Dry run mode, not syncing to the cloud.
wandb: Tracking run with wandb version 0.9.3

...

wandb: ERROR Couldn't import tensorboard, not streaming events. Run `pip install tensorboard`
wandb: Program ended successfully.
wandb: You can sync this run to the cloud by running: 
wandb: wandb sync wandb/dryrun-20200716_123910-351imp5c

Any help is appreciated, as I cannot currently use my favorite experiment tracking framework with the Object Detection API. Running in Docker is a requirement for me, I cannot use virtual environments as suggested in the previous issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vanpeltcommented, Sep 1, 2020

Apologies for the delay. The issue is being caused by sys.path issue messing up our ability to import tensorboard. We’ve fixed this in our latest library. You can install it with pip install wandb -U --pre. I’ve verified this works in the example docker image provided.

1reaction
tyomhakcommented, Jul 17, 2020

Hi there, thank you for reporting. I’m filing an internal ticket for this. We’ll look into this and get back to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TensorFlow 2: TensorBoard import error · Issue #1160 - GitHub
I am trying to sync the client with TensorBoard in a Docker container with the TF2.2 base image. However, the client is unable...
Read more >
I have this error when trying to run TensorBoard: ImportError ...
I have this error when trying to run TensorBoard: ImportError: cannot import name 'parameter_server_strategy_v2' from 'tensorflow.python.
Read more >
Build and install error messages - TensorFlow
Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow...
Read more >
How to install Tensorflow on the Apple M1 Notebook
python -m pip install tensorflow-macos will run Python 2 and ask it to install tensorflow which is why you're getting the error that...
Read more >
No module named 'tensorboard' in Python | bobbyhadz
The Python "ModuleNotFoundError: No module named 'tensorboard'" occurs when we forget to install the tensorboard module before importing it ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found