You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the 'cloudpickle' package is not installed, then dask.multiprocessing is not available. The try/except that used to be wrapped around if actual_get is dask.multiprocessing.get meant that _get_scheduler() worked in that case, returning "threaded" (I assume this was the expected behaviour). After #3358, _get_scheduler() raised an AttributeError: module 'dask' has no attribute 'multiprocessing' until I installed 'cloudpickle'.
Suggest either reverting the changes that removed the try/except or making 'cloudpickle' a dependency.
To reproduce:
check 'cloudpickle' is not installed, but 'dask' is
These lines were recently changed in #3358
xarray/xarray/backends/locks.py
Lines 87 to 92 in 3f9069b
If the 'cloudpickle' package is not installed, then
dask.multiprocessing
is not available. Thetry/except
that used to be wrapped aroundif actual_get is dask.multiprocessing.get
meant that_get_scheduler()
worked in that case, returning"threaded"
(I assume this was the expected behaviour). After #3358,_get_scheduler()
raised anAttributeError: module 'dask' has no attribute 'multiprocessing'
until I installed 'cloudpickle'.Suggest either reverting the changes that removed the
try/except
or making 'cloudpickle' a dependency.To reproduce:
Expected result:
"threaded"
Actual result:
The text was updated successfully, but these errors were encountered: