zed-industries/zed · error
pylsp-mypy installation failed
Error message
pylsp-mypy installation failed
What it means
The follow-up pip install of pylsp-mypy into the managed venv failed with a non-success status, after python-lsp-server itself installed. Same failure class as other pip installs: network, resolution, or environment issues.
Source
Thrown at crates/languages/src/python.rs:2004
delegate: &Arc<dyn LspAdapterDelegate>,
) -> impl Send + Future<Output = Result<LanguageServerBinary>> + use<> {
let delegate = delegate.clone();
async move {
let venv = Self::ensure_venv(delegate.as_ref()).await?;
let pip_path = venv.join(BINARY_DIR).join("pip3");
ensure!(
util::command::new_command(pip_path.as_path())
.arg("install")
.arg("python-lsp-server[all]")
.arg("--upgrade")
.output()
.await?
.status
.success(),
"python-lsp-server[all] installation failed"
);
ensure!(
util::command::new_command(pip_path)
.arg("install")
.arg("pylsp-mypy")
.arg("--upgrade")
.output()
.await?
.status
.success(),
"pylsp-mypy installation failed"
);
let pylsp = venv.join(BINARY_DIR).join("pylsp");
ensure!(
delegate.which(pylsp.as_os_str()).await.is_some(),
"pylsp installation was incomplete"
);
Ok(LanguageServerBinary {
path: pylsp,
env: None,View on GitHub (pinned to f4178619ac)
Solutions
- Retry the install; transient PyPI/network failures are common
- Install pylsp-mypy manually in the venv to inspect the underlying pip error
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/languages/src/python.rs:2004 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/5d5d3006620bd0a1.
Report an issue: GitHub.