File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 47
47
48
48
import jedi
49
49
from prompt_toolkit .completion import Completer , Completion
50
- try : # prompt_toolkit 2.*
51
- from prompt_toolkit .completion import PathCompleter
52
- except ImportError : # prompt_toolkit 1.*
50
+ try :
53
51
from prompt_toolkit .contrib .completers import PathCompleter
52
+ except ImportError as e : # prompt_toolkit 2.*
53
+ print ('\n \n \n prompt_toolkit 2 is not supported. Please downgrade to prompt_toolkit<2.\n \n \n ' )
54
+ raise e
55
+
54
56
from prompt_toolkit .contrib .regular_languages .compiler import \
55
57
compile as compile_grammar
56
58
from prompt_toolkit .contrib .regular_languages .completion import \
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ numba>=0.25
11
11
colorlog >= 2.7
12
12
pydotplus
13
13
seaborn
14
- prompt_toolkit >= 1.0.3
14
+ prompt_toolkit >= 1.0.3 , < 2
15
15
jedi >= 0.9.0
16
16
psutil >= 5.0.1
17
17
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def read(fname):
54
54
'future>=0.15' ,
55
55
'tqdm>=4.5' ,
56
56
'colorlog>=2.7' ,
57
- 'prompt_toolkit>=1.0.3' ,
57
+ 'prompt_toolkit>=1.0.3,<2 ' ,
58
58
'jedi>=0.9.0' ,
59
59
'pydotplus' ,
60
60
'seaborn' ,
You can’t perform that action at this time.
0 commit comments