ProjectPythia / cmip6-cookbook

Examples of analysis of Google Cloud CMIP6 data using Pangeo tools
https://projectpythia.org/cmip6-cookbook/
Apache License 2.0
11 stars 9 forks source link

Python / Dask issues #4

Closed ktyle closed 2 years ago

ktyle commented 2 years ago

@r-ford, good news and bad:

  1. Good: I was able to get the ecs-cmip6 notebook to launch, with no import errors, after I specified python<3.10 in the environment.yml file
  2. Bad: The very next cell failed:
    
    ---------------------------------------------------------------------------
    ValueError                                Traceback (most recent call last)
    Input In [2], in <cell line: 1>()
    ----> 1 gateway = Gateway()
      2 cluster = gateway.new_cluster()
      3 cluster.adapt(minimum=1, maximum=20)

File ~/miniforge3/envs/cmip6-cookbook-dev/lib/python3.9/site-packages/dask_gateway/client.py:282, in Gateway.init(self, address, proxy_address, public_address, auth, asynchronous, loop) 280 address = format_template(dask.config.get("gateway.address")) 281 if address is None: --> 282 raise ValueError( 283 "No dask-gateway address provided or found in configuration" 284 ) 285 address = address.rstrip("/") 287 if public_address is None:

ValueError: No dask-gateway address provided or found in configuration

ktyle commented 2 years ago

One needs to configure a "Dask gateway server":

https://gateway.dask.org/configuration-user.html

An earlier version of this notebook, which I adapted for the 2021 AMS Python short course, used dask.distributed instead. Wonder if this might be a more portable method for the purposes of the cookbook.

r-ford commented 2 years ago

Solved with #5