Show More
@@ -16,6 +16,8 b' Authors:' | |||||
16 | #----------------------------------------------------------------------------- |
|
16 | #----------------------------------------------------------------------------- | |
17 |
|
17 | |||
18 | import os |
|
18 | import os | |
|
19 | import warnings | |||
|
20 | ||||
19 | import zmq |
|
21 | import zmq | |
20 |
|
22 | |||
21 |
|
23 | |||
@@ -26,6 +28,13 b" if os.name == 'nt':" | |||||
26 | elif zmq.__version__ < '2.1.4': |
|
28 | elif zmq.__version__ < '2.1.4': | |
27 | raise ImportError("IPython.parallel requires pyzmq/0MQ >= 2.1.4, you appear to have %s"%zmq.__version__) |
|
29 | raise ImportError("IPython.parallel requires pyzmq/0MQ >= 2.1.4, you appear to have %s"%zmq.__version__) | |
28 |
|
30 | |||
|
31 | if zmq.zmq_version() >= '3.0.0': | |||
|
32 | warnings.warn("""libzmq 3 detected. | |||
|
33 | It is unlikely that IPython's zmq code will work properly. | |||
|
34 | Please install libzmq stable, which is 2.1.x or 2.2.x""", | |||
|
35 | RuntimeWarning) | |||
|
36 | ||||
|
37 | ||||
29 | from IPython.utils.pickleutil import Reference |
|
38 | from IPython.utils.pickleutil import Reference | |
30 |
|
39 | |||
31 | from .client.asyncresult import * |
|
40 | from .client.asyncresult import * |
@@ -9,6 +9,8 b'' | |||||
9 | # Verify zmq version dependency >= 2.1.4 |
|
9 | # Verify zmq version dependency >= 2.1.4 | |
10 | #----------------------------------------------------------------------------- |
|
10 | #----------------------------------------------------------------------------- | |
11 |
|
11 | |||
|
12 | import warnings | |||
|
13 | ||||
12 | minimum_pyzmq_version = "2.1.4" |
|
14 | minimum_pyzmq_version = "2.1.4" | |
13 |
|
15 | |||
14 | try: |
|
16 | try: | |
@@ -23,3 +25,10 b' if pyzmq_version < minimum_pyzmq_version:' | |||||
23 | minimum_pyzmq_version, pyzmq_version)) |
|
25 | minimum_pyzmq_version, pyzmq_version)) | |
24 |
|
26 | |||
25 | del pyzmq_version |
|
27 | del pyzmq_version | |
|
28 | ||||
|
29 | if zmq.zmq_version() >= '3.0.0': | |||
|
30 | warnings.warn("""libzmq 3 detected. | |||
|
31 | It is unlikely that IPython's zmq code will work properly. | |||
|
32 | Please install libzmq stable, which is 2.1.x or 2.2.x""", | |||
|
33 | RuntimeWarning) | |||
|
34 |
General Comments 0
You need to be logged in to leave comments.
Login now