Skip to content

Deprecation of highest_pickle_protocol in importlib 3.12 #334

@hadisfr

Description

@hadisfr

Running SublimeJEDI with python 3.12 is impossible and will result in the following error and failure of pickle_load:

Traceback (most recent call last):
File "~/.config/sublime-text-3/Packages/SublimeJEDI/dependencies/jedi/inference/compiled/subprocess/main.py", line 48, in
from jedi._compatibility import highest_pickle_protocol # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'highest_pickle_protocol' from 'jedi._compatibility' (***/python3.12/site-packages/jedi/_compatibility.py)

Cause

The method highest_pickle_protocol has been marked as deprecated since importlib 3.3, and finally is removed from importlib 3.12. See the latest version at https://docs.python.org/3.11/library/importlib.html#importlib.abc.Finder.find_module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions