File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import logging
6
6
7
+ import numpy as np
8
+ from packaging import version
9
+
7
10
import ray .ray_constants as ray_constants
8
11
9
12
@@ -207,3 +210,10 @@ def _check_usage(self):
207
210
if self .redirect_output is not None :
208
211
raise DeprecationWarning (
209
212
"The redirect_output argument is deprecated." )
213
+
214
+ if self .use_pickle :
215
+ assert (version .parse (
216
+ np .__version__ ) >= version .parse ("1.16.0" )), (
217
+ "numpy >= 1.16.0 required for use_pickle=True support. "
218
+ "You can use ray.init(use_pickle=False) for older numpy "
219
+ "versions, but this may be removed in future versions." )
Original file line number Diff line number Diff line change 1
1
from __future__ import absolute_import
2
2
from __future__ import division
3
3
from __future__ import print_function
4
+
4
5
import hashlib
5
6
import io
6
7
import logging
7
8
import time
9
+
8
10
import pyarrow
9
11
import pyarrow .plasma as plasma
12
+
10
13
import ray .cloudpickle as pickle
11
14
from ray import ray_constants , JobID
12
15
import ray .utils
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def find_version(*filepath):
160
160
161
161
162
162
requires = [
163
- "numpy >= 1.14 " ,
163
+ "numpy >= 1.16 " ,
164
164
"filelock" ,
165
165
"jsonschema" ,
166
166
"funcsigs" ,
You can’t perform that action at this time.
0 commit comments