Config file failed to load

Hi everyone new to dask. I was trying to write a config file for dask in my virtualenv under etc/dask/config.yaml; the content was as below:

array:
  backend: cupy
dataframe:
  backend: cudf
visualization: graphviz

and dask failed to load with error saying: TypeError: ‘str’ object does not support item assignmentI do not have any other config file in my system, not under user home directory or system python.I am using Debian 10 variant and dask version is 2023.1.1

Hi @qiuxiao, welcome to Dask community!

The offending line is

You should use:

array:
  backend: cupy
dataframe:
  backend: cudf
visualization:
  engine: graphviz

ah Yes, thanks for pointing that out!