issues: 1106340339
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1106340339 | I_kwDOAMm_X85B8Wnz | 6169 | [Bug]: Xarray dependency: TypeError | 13831458 | closed | 0 | 5 | 2022-01-17T23:31:24Z | 2022-01-18T06:34:54Z | 2022-01-18T06:34:54Z | NONE | What happened?I am using a library aicsimageio to read images, which has dask and xarray as dependencies. I've been using Google Colab and when I run the command: import aicsimageio I get this error: TypeError: load() missing 1 required positional argument: 'Loader' I've never had this error before. When looking at the error traceback, it appears to be related to xarray and the developer for aicsimageio recommended me to get in touch with xarray. What did you expect to happen?aicsimageio library will import all necessary dependencies without any error Minimal Complete Verifiable Example
Relevant log output```python Error Log: TypeError Traceback (most recent call last) <ipython-input-6-4328fee3e600> in <module>() ----> 1 from aicsimageio import imread 9 frames /usr/local/lib/python3.7/dist-packages/aicsimageio/init.py in <module>() 4 """Top-level package for AICSImageIO.""" 5 ----> 6 from .aics_image import AICSImage # noqa: F401 7 from .aics_image import imread # noqa: F401 8 from .aics_image import imread_dask # noqa: F401 /usr/local/lib/python3.7/dist-packages/aicsimageio/aics_image.py in <module>() 8 import dask.array as da 9 import numpy as np ---> 10 import xarray as xr 11 from ome_types import OME 12 /usr/local/lib/python3.7/dist-packages/xarray/init.py in <module>() 1 import pkg_resources 2 ----> 3 from . import testing, tutorial, ufuncs 4 from .backends.api import ( 5 load_dataarray, /usr/local/lib/python3.7/dist-packages/xarray/tutorial.py in <module>() 11 import numpy as np 12 ---> 13 from .backends.api import open_dataset as open_dataset 14 from .backends.rasterio import open_rasterio as _open_rasterio 15 from .core.dataarray import DataArray /usr/local/lib/python3.7/dist-packages/xarray/backends/init.py in <module>() 4 formats. They should not be used directly, but rather through Dataset objects. 5 """ ----> 6 from .cfgrib_ import CfGribDataStore 7 from .common import AbstractDataStore, BackendArray, BackendEntrypoint 8 from .file_manager import CachingFileManager, DummyFileManager, FileManager /usr/local/lib/python3.7/dist-packages/xarray/backends/cfgrib_.py in <module>() 14 _normalize_path, 15 ) ---> 16 from .locks import SerializableLock, ensure_lock 17 from .store import StoreBackendEntrypoint 18 /usr/local/lib/python3.7/dist-packages/xarray/backends/locks.py in <module>() 11 12 try: ---> 13 from dask.distributed import Lock as DistributedLock 14 except ImportError: 15 DistributedLock = None /usr/local/lib/python3.7/dist-packages/dask/distributed.py in <module>() 9 10 try: ---> 11 from distributed import * 12 except ImportError as e: 13 if e.msg == "No module named 'distributed'": /usr/local/lib/python3.7/dist-packages/distributed/init.py in <module>() 1 from future import print_function, division, absolute_import 2 ----> 3 from . import config 4 from dask.config import config 5 from .actor import Actor, ActorFuture /usr/local/lib/python3.7/dist-packages/distributed/config.py in <module>() 18 19 with open(fn) as f: ---> 20 defaults = yaml.load(f) 21 22 dask.config.update_defaults(defaults) TypeError: load() missing 1 required positional argument: 'Loader' ``` Anything else we need to know?When I upgrade the version of distributed or if I downgrade PyYAML to 5.4, it fixes the bug. These were posted on the following repos: aicsimageio: https://github.com/AllenCellModeling/aicsimageio/issues/368 and dask https://github.com/dask/dask/issues/8574 EnvironmentGoogle Colab Xarray version: 0.18.2 Dask version: 2022.01.0 distributed version: 1.25.3 PyYAML: 6.0 Python version:3.7.12 Operating System: Linux (Google Colab) Install method (conda, pip, source): pip |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6169/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |