Show More
@@ -2,9 +2,29 b' from __future__ import print_function' | |||||
2 | import json |
|
2 | import json | |
3 | import os |
|
3 | import os | |
4 |
|
4 | |||
5 | from jsonschema import SchemaError |
|
5 | try: | |
6 | from jsonschema import Draft3Validator as Validator |
|
6 | from jsonschema import SchemaError | |
7 | import jsonpointer as jsonpointer |
|
7 | from jsonschema import Draft3Validator as Validator | |
|
8 | except ImportError as e: | |||
|
9 | verbose_msg = """ | |||
|
10 | ||||
|
11 | IPython depends on the jsonschema package: https://pypi.python.org/pypi/jsonschema | |||
|
12 | ||||
|
13 | Please install it first. | |||
|
14 | """ | |||
|
15 | raise ImportError(e.message + verbose_msg) | |||
|
16 | ||||
|
17 | try: | |||
|
18 | import jsonpointer as jsonpointer | |||
|
19 | except ImportError as e: | |||
|
20 | verbose_msg = """ | |||
|
21 | ||||
|
22 | IPython depends on the jsonpointer package: https://pypi.python.org/pypi/jsonpointer | |||
|
23 | ||||
|
24 | Please install it first. | |||
|
25 | """ | |||
|
26 | raise ImportError(e.message + verbose_msg) | |||
|
27 | ||||
8 | from IPython.utils.py3compat import iteritems |
|
28 | from IPython.utils.py3compat import iteritems | |
9 |
|
29 | |||
10 |
|
30 |
General Comments 0
You need to be logged in to leave comments.
Login now