JulianEberius / SublimePythonIDE

ST3 only: A rewrite of SublimeRope for ST3, uses the Rope library to add python completions and refactoring to ST3
GNU General Public License v2.0
267 stars 38 forks source link

SublimePythonIDE: No server response unsupported pickle protocol: 4 #94

Open ZeroMorale opened 4 years ago

ZeroMorale commented 4 years ago

This issue comes up everytime i m trying to call python file via Terminus

JulianEberius commented 4 years ago

Thanks for reporting! However, I haven't updated or even used SublimePythonIDE in years, and can't really help anymore. Sorry. My guess would be some difference in Python version used in SublimeText and some other plugins, maybe? Pickle protocol 4 was introduced in Python 3.4, maybe some part of your stack uses Python >= 3.4 and some other part <3.4 and thus their communication fails?

Sorry that I cannot be of more help.

edit: well maybe one idea: SublimePythonIDE runs a background server doing the refactorings / calculating the completions etc, see module "server" . The server is autostarted with a Python that is detected the following way:

python_detectors = [
        lambda: normalize_path(get_setting("python_interpreter", view, ""), True),
        lambda: normalize_path(project_venv_python(view)),
        lambda: normalize_path(shebang_line_python(view)),
        lambda: normalize_path(system_python())
    ]

Without looking into the details, my guess would be that this server runs on a different version of Python than some other component, maybe ST2/3 itself?

ZeroMorale commented 4 years ago

What are you using now or can you advice me better option of using combination terminal + sublime + python