##// END OF EJS Templates
cleaner error on pyzmq < 2.0.10.
MinRK -
Show More
@@ -0,0 +1,25 b''
1 #-----------------------------------------------------------------------------
2 # Copyright (C) 2010 The IPython Development Team
3 #
4 # Distributed under the terms of the BSD License. The full license is in
5 # the file COPYING.txt, distributed as part of this software.
6 #-----------------------------------------------------------------------------
7
8 #-----------------------------------------------------------------------------
9 # Verify zmq version dependency >= 2.0.10
10 #-----------------------------------------------------------------------------
11
12 minimum_pyzmq_version = "2.0.10"
13
14 try:
15 import zmq
16 except ImportError:
17 raise ImportError("IPython.zmq requires pyzmq >= %s"%minimum_pyzmq_version)
18
19 pyzmq_version = zmq.__version__
20
21 if pyzmq_version < minimum_pyzmq_version:
22 raise ImportError("IPython.zmq requires pyzmq >= %s, but you have %s"%(
23 minimum_pyzmq_version, pyzmq_version))
24
25 del pyzmq_version
General Comments 0
You need to be logged in to leave comments. Login now