weixin_39605414 2020-11-21 16:46
浏览 2

Problem with jedi 0.12.1

Original report by me.


Autocomplete error: The subprocess C:\Python36-32\python.exe has crashed (EOFError('Ran out of input'), stderr=b'Traceback (most recent call last):\r\n
  File "C:\\Python37-32\\lib\\site-packages\\jedi\\evaluate\\compiled\\subprocess\\__main__.py", line 34, in <module>\r\n
    from jedi.evaluate.compiled import subprocess  # NOQA\r\n
  File "C:\\Python37-32\\lib\\site-packages\\jedi\\__init__.py", line 41, in <module>\r\n
    from jedi.api import Script, Interpreter, set_debug_function, \\\r\n
  File "C:\\Python37-32\\lib\\site-packages\\jedi\\api\\__init__.py", line 15, in <module>\r\n
    import parso\r\n
  File "C:\\Python37-32\\lib\\site-packages\\parso\\__init__.py", line 41, in <module>\r\n
    from parso.parser import ParserSyntaxError\r\n
  File "C:\\Python37-32\\lib\\site-packages\\parso\\parser.py", line 26, in <module>\r\n
    from parso import tree\r\n
  File "C:\\Python37-32\\lib\\site-packages\\parso\\tree.py", line 2, in <module>\r\n
    from parso._compatibility import utf8_repr, encoding, py_version\r\n
  File "C:\\Python37-32\\lib\\site-packages\\parso\\_compatibility.py", line 6, in <module>\r\n
    import platform\r\n  
  File "C:\\Python37-32\\lib\\platform.py", line 116, in <module>\r\n
    import sys, os, re, subprocess\r\n  
  File "C:\\Python37-32\\lib\\re.py", line 123, in <module>\r\n
    import sre_compile\r\n
  File "C:\\Python37-32\\lib\\sre_compile.py", line 17, in <module>\r\n
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"\r\nAssertionError: SRE module mismatch\r\n').

</module></module></module></module></module></module></module></module></module></module>

该提问来源于开源项目:thonny/thonny

  • 写回答

5条回答 默认 最新

  • weixin_39605414 2020-11-21 16:46
    关注

    Seems that this specific error message was caused by Eclipse PyDev tricks. I still don't understand where this Python36 comes from -- the frontend used Python 3.7 and backend its venv.

    With pure python the problem was not being able to import parso. The problem applies only to Thonny 2.1 which copies jedi for the back-end but I forgot to copy parso for newer versions.

    评论

报告相同问题?