Skip to content

Python LSP fails to initialize #3670

@miguel-angel-monjas

Description

@miguel-angel-monjas

Checks

Operating system

Linux 6.8.0-94-generic - Ubuntu 22.04.5 LTS

Expected behaviour

A Python LSP server is started and is usable from Kiro-CLI

Actual behaviour

Both pylsp and pyright fail to initialize in Kiro CLI:

  • pylsp: Immediate failure "✗ pylsp (python) - failed to initialize"
  • pyright: Hangs indefinitely at "◐ pyright (python) - initializing..."

Both work correctly from command line:

  • pylsp --version → pylsp v1.14.0
  • pyright-langserver --stdio → starts without errors

Installed via: uv tool install python-lsp-server / pyright

Environment:

  • OS: Linux (Ubuntu)
  • Python: 3.12.11
  • Project has uv-managed .venv
  • Config: .kiro/settings/lsp.json (valid JSON)

Tried: global install, venv install, absolute/relative paths, symlinks

Steps to reproduce

No response

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "1.27.2"
hash = "aa2f8e7241504f598fd58ed79f4fee5ab9bf77ae"
date = "2026-03-09T22:50:37.526145Z (3d ago)"
variant = "minimal"

[system-info]
chip = "11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz"
total-cores = 2
memory = "46.86 GB"

[system-info.os.linux]
kernel_version = "6.8.0-94-generic"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 22.04.5 LTS"
version_id = "22.04"
version = "22.04.5 LTS (Jammy Jellyfish)"

[environment]
cwd = "/home/USER/Projects/context-retrieval/cluster_tests/api_client"
cli-path = "/home/USER/Projects/context-retrieval/cluster_tests/api_client"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.1.16"
terminal = "Gnome Terminal"
install-method = "unknown"

[env-vars]
DISPLAY = ":10.0"
GTK_IM_MODULE = "ibus"
PATH = "/home/USER/bin:/home/USER/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/USER/.local/bin"
QT_IM_MODULE = "ibus"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "ubuntu:GNOME"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions