`wandb.init` does not play well under `bazel test`
See original GitHub issue- Weights and Biases version:
wandb, version 0.9.1
- Python version: Python 3.6.9
- Operating System: Linux
Description
Just trying to put our usages of wandb.init
under bazel test
.
However, when we do that, we get the following:
Traceback (most recent call last):
File "{runfiles}/wandb_examples/
test/wandb_stub_test.py", line 48, in test_wandb
wandb.init(project="test_project", sync_tensorboard=True)
File "{execroot}/wandb_examples/venv/lib/python3.6/site-packages/wandb/__init__.py", line 1129, in init
_init_headless(run, False)
File "{execroot}/wandb_examples/venv/lib/python3.6/site-packages/wandb/__init__.py", line 259, in _init_headless
stdout_master_fd, stdout_slave_fd = io_wrap.wandb_pty(resize=False)
File "{execroot}/wandb_examples/venv/lib/python3.6/site-packages/wandb/io_wrap.py", line 157, in wandb_pty
master_fd, slave_fd = pty.openpty()
File "/usr/lib/python3.6/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/usr/lib/python3.6/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
What I Did
See this repro/.../README
section:
https://github.com/EricCousineau-TRI/repro/tree/3cc6aa5ba70e306b3b1a1660f3f59c07b1eca12d/python/wandb_examples#wandb-and-bazel-test
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
wandb.init does not play well under bazel test #1137 - GitHub
Just trying to put our usages of wandb.init under bazel test . However, when we do that, we get the following: Traceback (most...
Read more >Launch Experiments with wandb.init - Documentation
Call wandb.init() once at the beginning of your script to initialize a new job. This creates a new run in W&B and launches...
Read more >Troubleshooting - Documentation - Weights & Biases - WandB
We run wandb in a separate process to make sure that if wandb somehow crashes, your training will continue to run. If the...
Read more >wandb.init - Documentation - Weights & Biases
wandb. init() spawns a new background process to log data to a run, and it also syncs data to wandb.ai by default, so...
Read more >General - Documentation - Weights & Biases - Wandb
W&B does not store any data unless wandb.save is called with the local file name. ... TensorBoard isn't built to work well on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
Confirmed that it works! https://github.com/EricCousineau-TRI/repro/commit/583acd21