Tab Completion Failed in Python 6.0.0
See original GitHub issueI have a problem while trying to do a tab completion in IPython. Specifically, if I write
from sci<tab>
then this error appears
Type 'copyright', 'credits' or 'license' for more information
IPython 6.0.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from sciUnhandled exception in thread started by <bound method Thread._bootstrap of <Thread(
Error in sys.excepthook:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/IPython/core/application.py", line 256,
return crashhandler.crash_handler_lite(etype, evalue, tb)
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/IPython/core/crashhandler.py", line 205,
traceback.print_exception(etype, evalue, tb)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 100, in print_exception
type(value), value, tb, limit=limit).format(chain=chain):
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__
_seen=_seen)
File "/Users/gerardo/anaconda/lib/python3.5/traceback.py", line 463, in __init__```
After it repeats many more times, the following appears:
Original exception was:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 39
return _loaded_grammars[path]
KeyError: '/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/grammar3.5.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 42
with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/gerardo/anaconda/lib/python3.5/site-
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 39
return _loaded_grammars[path]
KeyError: '/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/grammar3.6.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 42
with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/gerardo/anaconda/lib/python3.5/site-
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 39
return _loaded_grammars[path]
KeyError: '/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/grammar3.6.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 42
with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/gerardo/anaconda/lib/python3.5/site-
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 39
return _loaded_grammars[path]
KeyError: '/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/grammar3.6.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 42
with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/gerardo/anaconda/lib/python3.5/site-
During handling of the above exception, another exception occurred:
Finally, the following appears:
Traceback (most recent call last):
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 48
return load_grammar()
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 48
return load_grammar()
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 48
return load_grammar()
File "/Users/gerardo/anaconda/lib/python3.5/site-packages/jedi/parser/python/__init__.py", line 48
return load_grammar()
Again repeating over and over again What could be the problem? I’m not sure how to try to fix this.
Thanks in advance!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (2 by maintainers)
Top Results From Across the Web
`ipython` tab autocomplete does not work on imported module
It is needed for tab completion and other IPython functions - in Windows it doesn't come with the IPython package and you have...
Read more >ipython tab completion maximum recursion error #1725 - GitHub
ipython tab completion maximum recursion error #1725 ... Tab Completion Failed in Python 6.0.0 ipython/ipython#10560.
Read more >tab completion fails in pdb/ipdb/ipython for python3.7
1 -- An enhanced Interactive Python. Type '?' for help. In [1]: import multiException in thread Thread-38: Traceback (most recent call last): ...
Read more >Module: core.completer — IPython 8.7.0 documentation
Tab completion will be able to infer that myvar[1] is a real number without executing any code unlike the previously available IPCompleter.greedy option....
Read more >fancycompleter: colorful Python TAB completion - PyPI
It is an extension of the stdlib's rlcompleter module. Its best feature is that the completions are displayed in different colors, depending on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mingwandroid Thank you. There was an update:
jedi:0.10.2-py36_1 --> 0.10.2-py36_2
. After updating, everything is all right. No error occurs with tab completion.Yeah, we are missing the grammar*.txt files here, not sure why, I’ve assigned the bug over at https://github.com/ContinuumIO/anaconda-issues/issues/1725 to myself.