Skip to content

Jedi server cannot start - AttributeError: module 'typing' has no attribute '_SpecialForm' #20606

Closed

Description

@yajo

Type: Bug

Since recently, Jedi server fails to start. Output shows this exception:

Traceback (most recent call last):
  File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/run-jedi-language-server.py", line 9, in <module>
    from jedi_language_server.cli import cli
  File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/jedi_language_server/cli.py", line 7, in <module>
    from .server import SERVER
  File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/jedi_language_server/server.py", line 14, in <module>
    from pydantic import ValidationError
  File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/pydantic/__init__.py", line 2, in <module>
    from . import dataclasses
  File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/pydantic/dataclasses.py", line 52, in <module>
    from typing_extensions import dataclass_transform
  File "/var/home/yajo/.vscode-oss/extensions/ms-python.python-2022.20.2-universal/pythonFiles/lib/jedilsp/typing_extensions.py", line 193, in <module>
    class _FinalForm(typing._SpecialForm, _root=True):
AttributeError: module 'typing' has no attribute '_SpecialForm'
[Info  - 7:47:21] Connection to server got closed. Server will restart.
[Error - 7:47:21] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 7:47:21] Python Jedi client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

No configuration changed recently on my side AFAIK... 🤔

Extension version: 2022.20.2
VSCodium version: VSCodium 1.74.3 (f8b9aeda40058455453f1298fd606caf6ff8d675, 2023-01-10T19:39:41.226Z)
OS version: Linux x64 6.1.5-200.fc37.x86_64
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 7 5700U with Radeon Graphics (16 x 4290)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.01GB (8.67GB free)
Process Argv --unity-launch
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland

Activity

  1. karthiknadig commented on Jan 31, 2023

    @karthiknadig
    Member

    What is the version of python that you are using?

  2. added
    bugIssue identified by VS Code Team member as probable bug
    info-neededIssue requires more information from poster
    and removed
    triage-neededNeeds assignment to the proper sub-team
    on Jan 31, 2023
  3. added a commit that references this issue on Jan 31, 2023
    d245a90
  4. karthiknadig commented on Jan 31, 2023

    @karthiknadig
    Member

    This might have been due to an outdated typing_extensions lib. I just updated the jedi-language-server, please try the pre-release that will come out tomorrow (2023.3.*)

  5. locked as resolved and limited conversation to collaborators on Mar 3, 2023
  6. added 2 commits that reference this issue on Mar 28, 2024
    50a5d67
    06c5dad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions