question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab Completion Failed in Python 6.0.0

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
moskomulecommented, May 15, 2017

@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.

1reaction
mingwandroidcommented, May 14, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found