Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete & Help Error thrown #5975

Closed
luckbot opened this issue Dec 13, 2017 · 2 comments
Closed

Autocomplete & Help Error thrown #5975

luckbot opened this issue Dec 13, 2017 · 2 comments

Comments

@luckbot
Copy link

luckbot commented Dec 13, 2017

Description

What steps will reproduce the problem?

  1. Press Ctrl + Space to start autocomplete
  2. Press Ctrl + I to start Help Function for a function
    -- Both errors do only come up in the editor, not in the IPython console

What is the expected output? What do you see instead?
Autocomplete & Help

Please provide any additional information below

File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\spyder\utils\introspection\manager.py", line 220, in get_completions
info = self.get_code_info('completions', automatic=automatic)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\spyder\utils\introspection\manager.py", line 216, in get_code_info
**kwargs)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\spyder\utils\introspection\utils.py", line 75, in init
self.get_info()
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\spyder\utils\introspection\utils.py", line 87, in get_info
lexer = find_lexer_for_filename(self.filename)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\spyder\utils\introspection\utils.py", line 180, in find_lexer_for_filename
lexer = get_lexer_for_filename(filename)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\pygments\lexers_init
.py", line 203, in get_lexer_for_filename
res = find_lexer_class_for_filename(fn, code)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\pygments\lexers_init
.py", line 168, in find_lexer_class_for_filename
for cls in find_plugin_lexers():
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\pygments\plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 2404, in load
self.require(*args, **kwargs)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 2427, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "c:\users\tsche\appdata\local\programs\python\python36\lib\site-packages\pkg_resources_init
.py", line 875, in resolve

Version and main components

  • Spyder Version: 3.2.4
  • Python Version: 3.6.2
  • Qt Versions: 5.9.3, PyQt5 5.9.2 on Windows

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.21.0 (OK)
numpy >=1.7      :  1.13.3 (OK)
sphinx >=0.6.6   :  1.6.5 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.11.0 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.27.3 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.7.4 (OK)

@CAM-Gerlach
Copy link
Member

Thanks for reporting. The error traceback that was posted is apparently incomplete. However, it is very likely a duplicate of e.g. #5673 , an error that's been reported numerous times now. As the full error message states, Jedi is only compatible with parso 0.1.0, not 0.1.1. Therefore, you can update jedi to the latest version with conda update jedi (or with pip, if you use that instead); you can also downgrade to parso 0.1.0 with e.g. conda install parso=0.1.0 , and you can close this issue.

@luckbot
Copy link
Author

luckbot commented Dec 13, 2017

Updating Jedi solved the issue
Thank you

@luckbot luckbot closed this as completed Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants