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.

`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:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Jul 3, 2020

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.

0reactions
EricCousineau-TRIcommented, Feb 19, 2021
Read more comments on GitHub >

github_iconTop 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 >

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