aws / aws/amazon-q-developer-cli
Python LSP fails to initialize
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### 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
```yaml
[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"
```
Contributor guide
Assessment
This issue has not been assessed yet.