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.

Sweep python agent hangs on Google Colab

See original GitHub issue

Sweep Python agent hangs on wandb.init() with following warning:

/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:55: UserWarning: semaphore_tracker: process died unexpectedly, relaunching.  Some semaphores might leak.
  warnings.warn('semaphore_tracker: process died unexpectedly, '

debug.log:

2021-01-12 21:10:45,752 INFO    Thread-17 :59 [wandb_setup.py:_flush():70] setting env: {'project': 'multimodal', 'entity': 'mm_magisterka', 'root_dir': '/content/deep-learning-video-recommendation', 'sweep_id': '8zwu6pqm', 'run_id': 'aenujn0n', 'config_paths': '/content/deep-learning-video-recommendation/wandb/sweep-8zwu6pqm/config-aenujn0n.yaml'}
2021-01-12 21:10:45,753 INFO    Thread-17 :59 [wandb_setup.py:_flush():70] multiprocessing start_methods=fork,spawn,forkserver
2021-01-12 21:10:45,753 INFO    Thread-17 :59 [wandb_setup.py:_flush():70] setting login settings: {}
2021-01-12 21:10:45,753 INFO    Thread-17 :59 [wandb_init.py:_log_setup():303] Logging user logs to /content/deep-learning-video-recommendation/wandb/run-20210112_211045-aenujn0n/logs/debug.log
2021-01-12 21:10:45,753 INFO    Thread-17 :59 [wandb_init.py:_log_setup():304] Logging internal logs to /content/deep-learning-video-recommendation/wandb/run-20210112_211045-aenujn0n/logs/debug-internal.log
2021-01-12 21:11:20,901 ERROR   Thread-17 :59 [wandb_init.py:init():601] error
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_init.py", line 575, in init
    run = wi.init()
  File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_init.py", line 411, in init
    ret = backend.interface.communicate_run(run, timeout=30)
  File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 542, in communicate_run
    return self._communicate_run(run, timeout=timeout)
  File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 533, in _communicate_run
    resp = self._communicate(req, timeout=timeout)
  File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 447, in _communicate
    return future.get(timeout)
  File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 63, in get
    is_set = self._object_ready.wait(timeout)
  File "/usr/lib/python3.6/threading.py", line 551, in wait
    signaled = self._cond.wait(timeout)
  File "/usr/lib/python3.6/threading.py", line 299, in wait
    gotit = waiter.acquire(True, timeout)
Exception

Previously the same code was working. Are you facing some issues ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
w4zircommented, Feb 18, 2021

Working fine now. Ty

1reaction
michalmisiewiczcommented, Jan 15, 2021

Sure

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sweep python agent hangs on Google Colab #1693 - GitHub
Sweep Python agent hangs on wandb.init() with following warning: /usr/lib/python3.6/multiprocessing/semaphore_tracker.py:55: UserWarning: ...
Read more >
Google Colab hangs evaluating trivial cells - Stack Overflow
Quite frequently Google Colab gets hung up on extremely simple cells (stuff like setting variables or defining a function--not evaluating!)
Read more >
Agent bug? File not found error - W&B Help - WandB community
Hi I'm using kaggle with Pytorch and W&B. Weights and Biases version: 0.12.11; Python version: 3.7.12. Description:
Read more >
Organizing_Hyperparameter_Sw...
In this tutorial we'll see how you can run sophisticated hyperparameter sweeps in 3 easy steps using Weights and Biases. Follow along with...
Read more >
How to Upload Project on GitHub from Google Colab?
Even if you have a GPU or a good computer creating a local environment with anaconda and installing packages and resolving installation issues ......
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