Spyder: what else ?

Created on 8 Dec 2017  路  4Comments  路  Source: spyder-ide/spyder

Description

What steps will reproduce the problem?



    1. 2.
  1. 3.

What is the expected output? What do you see instead?

Please provide any additional information below

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\manager.py", line 220, in get_completions
info = self._get_code_info('completions', automatic=automatic)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\manager.py", line 216, in _get_code_info
*kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\utils.py", line 75, in __init__
self._get_info()
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\utils.py", line 87, in _get_info
lexer = find_lexer_for_filename(self.filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\utils.py", line 180, in find_lexer_for_filename
lexer = get_lexer_for_filename(filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\pygments\lexers__init__.py", line 203, in get_lexer_for_filename
res = find_lexer_class_for_filename(_fn, code)
File "C:\ProgramData\Anaconda3\lib\site-packages\pygments\lexers__init__.py", line 168, in find_lexer_class_for_filename
for cls in find_plugin_lexers():
File "C:\ProgramData\Anaconda3\lib\site-packages\pygments\plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 2404, in load
self.require(
args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 2427, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 872, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (parso 0.1.1 (c:\programdata\anaconda3\lib\site-packages), Requirement.parse('parso==0.1.0'), {'jedi'})

Version and main components

  • Spyder Version: 3.2.4
  • Python Version: 3.6.3
  • Qt Versions: 5.6.2, PyQt5 5.6 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.3 (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)

All 4 comments

Thanks for reporting; this is a duplicate of e.g. #5673. As the error message states, Jedi is only compatible with parso 0.1.0, not, 0.1.1. Therefore, please downgrade to 0.1.0 to fix this, and this issue can be closed.

I don't think I could have put it better myself :)

@CAMGerlach-Baron yep! Copy-pasted your last comment on the same topic :smile:

@Prikers Hehe, that was the joke! I'm quite flattered ^_^

Was this page helpful?
0 / 5 - 0 ratings