zed-industries/zed · error
python-lsp-server[all] installation failed
Error message
python-lsp-server[all] installation failed
What it means
Raised in the python-lsp-server adapter when the `pip install python-lsp-server[all]` step inside the managed venv fails (the pip3 command exited non-zero). The language server binary was never installed, so fetch_server_binary aborts and the LSP cannot start.
Source
Thrown at crates/languages/src/python.rs:1993
_: &Arc<dyn LspAdapterDelegate>,
_: bool,
_: &mut AsyncApp,
) -> Result<()> {
Ok(())
}
fn fetch_server_binary(
&self,
_: (),
_: PathBuf,
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?
.statusView on GitHub (pinned to f4178619ac)
Solutions
- Retry the language server install after checking network connectivity
- Run 'pip3 install python-lsp-server[all] --upgrade' manually in the Zed venv to see the pip error
- Ensure Python/venv prerequisites and pip are available and up to date
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/languages/src/python.rs:1993 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/4b80a67132fbcbaf.
Report an issue: GitHub.