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.

RuntimeError: Cannot add child handler (on Google Cloud Shell/GKE)

See original GitHub issue

What happened: Running the basic quickstart example with dask-kubernetes==2021.10.0, I get the following error (full trace below the fold).

RuntimeError: Cannot add child handler, the child watcher does not have a loop attached

What you expected to happen: Start a basic cluster.

Minimal Complete Verifiable Example:

pip install dask-kubernetes==2021.10.0
from dask_kubernetes import KubeCluster
# yaml copied from quickstart
cluster = KubeCluster("worker-spec.yaml")
cluster.scale(1)

Anything else we need to know?: It works on version 2021.3.1.

Environment:

  • Dask version: 2021.10.0
  • Python version: 3.7.3
  • Operating System: Debian buster (running on Google Cloud Shell)
  • Install method (conda, pip, source): pip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
cardernecommented, Jan 15, 2022

Just ran the same code on python3.9.9 (on Google Cloud Shell) and it seems to work.

1reaction
jacobtomlinsoncommented, Feb 16, 2022

Yes this is a known issue in Python 3.7. We are dropping Python 3.7 support soon (dask/community#213) so please upgrade to a more recent version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error messages - Resource Manager - Google Cloud
This document identifies some of the error codes and messages that Google APIs return. Specifically, the errors listed here are in the global,...
Read more >
Google Cloud Platform
Google Cloud Platform lets you build, deploy, and scale applications, websites, and services on the same infrastructure as Google.
Read more >
Google Cloud Pub/Sub error "Closed subscriber cannot be ...
Well, Google's own documentation states that the code I was using would automatically close the subscription because of the with block.
Read more >
Incidents - Google Cloud Service Health
BigQuery Data Transfer Service. No incidents reported. See more ...
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