File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ New Features
3131 ``pip install git+https://github.com/andrewgsavage/pint.git@refs/pull/6/head) ``.
3232 Even with it, interaction with non-numpy array libraries, e.g. dask or sparse, is broken.
3333
34+ Bug fixes
35+ ~~~~~~~~~
36+ - Fix regression introduced in v0.14.0 that would cause a crash if dask is installed
37+ but cloudpickle isn't (:issue: `3401 `) by `Rhys Doyle <https://github.com/rdoyle45 >`_
38+
3439Documentation
3540~~~~~~~~~~~~~
3641
@@ -39,6 +44,7 @@ Documentation
3944 datetime-like dimension is required. (:pull: `3400 `)
4045 By `Justus Magin <https://github.com/keewis >`_.
4146
47+
4248.. _whats-new.0.14.0 :
4349
4450v0.14.0 (14 Oct 2019)
Original file line number Diff line number Diff line change 11import multiprocessing
22import threading
33import weakref
4- from typing import Any , MutableMapping
4+ from typing import Any , MutableMapping , Optional
55
66try :
77 from dask .utils import SerializableLock
@@ -62,7 +62,7 @@ def _get_lock_maker(scheduler=None):
6262 return _LOCK_MAKERS [scheduler ]
6363
6464
65- def _get_scheduler (get = None , collection = None ):
65+ def _get_scheduler (get = None , collection = None ) -> Optional [ str ] :
6666 """Determine the dask scheduler that is being used.
6767
6868 None is returned if no dask scheduler is active.
@@ -86,10 +86,15 @@ def _get_scheduler(get=None, collection=None):
8686 except (ImportError , AttributeError ):
8787 pass
8888
89- if actual_get is dask .multiprocessing .get :
90- return "multiprocessing"
91- else :
92- return "threaded"
89+ try :
90+ # As of dask=2.6, dask.multiprocessing requires cloudpickle to be installed
91+ # Dependency removed in https://github.com/dask/dask/pull/5511
92+ if actual_get is dask .multiprocessing .get :
93+ return "multiprocessing"
94+ except AttributeError :
95+ pass
96+
97+ return "threaded"
9398
9499
95100def get_write_lock (key ):
You can’t perform that action at this time.
0 commit comments