unable to find pylsp #33121
Replies: 22 comments 3 replies
-
|
Occurs on mac too, can be ignored by disabling pylsp via settings Running version 0.163.3 |
Beta Was this translation helpful? Give feedback.
-
|
I'm getting the same problem on an M1 Mac on Zed version 0.166.1 (01883a4) where even if add "languages": {
"Python": {
"language_servers": ["!pylsp"]
}
}I get the error: |
Beta Was this translation helpful? Give feedback.
-
|
As a fix to the error my prior post, I suggest to remove and re-install the zed editor and then if you still get the error as I did, then do the following: cd ~/Library/Application\ Support/Zed/languages/pylsp
rm -rf pylsp-venv
virtualenv pylsp-venv
source pylsp-venv/bin/activate
pip install "python-lsp-server[all]"The pylsp error disappeared after the above. |
Beta Was this translation helpful? Give feedback.
-
|
Hello everyone! :D I had the same problem on windows 11 and I made a PR with a simple change to make it work, at least on windows 11. The PR: #22587 If you try it and it fails let me know and I'll check it again. |
Beta Was this translation helpful? Give feedback.
-
|
On Arch Linux I fixed this by installing python-lsp-server from the package manager. |
Beta Was this translation helpful? Give feedback.
-
|
have this issue as well, on macOS |
Beta Was this translation helpful? Give feedback.
-
|
This is a version mismatch with the pylsp-venv wheels, if you delete it will auto rebuild next launch and resolve itself. delete: They probably need to add a check of the versions on startup and rebuild on mismatch. |
Beta Was this translation helpful? Give feedback.
-
What is the Mac path? |
Beta Was this translation helpful? Give feedback.
-
|
I had the same problem on Linux (Ubuntu/Mint). @shakfu 's OSX answer worked for me after changing the application path to
|
Beta Was this translation helpful? Give feedback.
-
The Mac path is here:
I faced this issue and did as was suggested by @Phelsong, deleted |
Beta Was this translation helpful? Give feedback.
-
|
Can reproduce on my mac as well in zed preview 175.3, and deleting as suggesting above worked. But shouldn't zed take care of this @osiewicz ? |
Beta Was this translation helpful? Give feedback.
-
|
Fresh install of zed The bin folder doesn't contain |
Beta Was this translation helpful? Give feedback.
-
|
After months, I just fixed it for myself atleast! (On Debian latest) sudo apt-get install python3-venv
rm ~/.local/share/zed/languages/pylsp/pylsp-venv/ -rf # unsure but just worked
Source of the command (1): https://askubuntu.com/a/1474910 Also solution for #20028 |
Beta Was this translation helpful? Give feedback.
-
uv pip install python-lsp-server[all]This worked for me on Ubuntu 24.04 |
Beta Was this translation helpful? Give feedback.
-
That fixed it for me as well on Ubuntu 24.04. I was missing the system |
Beta Was this translation helpful? Give feedback.
-
Fixed it for me, TYSM |
Beta Was this translation helpful? Give feedback.
-
|
If you're using the msys2 windows binary,you have delete the venv folder and rebuild it in native windows, not mysy2: Zed still says "downloading pylsp" on every start though.. not sure why. |
Beta Was this translation helpful? Give feedback.
-
|
This comment is about running Zed on a Mac. Deleting Zed and re-installing did NOT work for me and I played around with it for about a day. The only thing that did work was... As noted above on a Mac this bug can be ignored by disabling pylsp via settings "languages": {
"Python": {
"language_servers": ["!pylsp", "..."]
}
}Running Zed version 0.188.4 |
Beta Was this translation helpful? Give feedback.
-
|
It looks like there's a lot of uncertainty about this issue, and the original issue is for a platform we don't support yet. As such, I'm converting this to a discussion so the community has an archive of it :) |
Beta Was this translation helpful? Give feedback.
-
|
I encountered this bug on Ubuntu 25.04 with Zed 0.193.1. Running |
Beta Was this translation helpful? Give feedback.
-
|
In my case, I
|
Beta Was this translation helpful? Give feedback.
-
|
Is there a solution for this on macOS? Currently still getting this on |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Check for existing issues
Describe the bug / provide steps to reproduce it
Language server error: pylsp
failed to spawn command. path: "C:\Users\AppData\Local\Zed\languages\pylsp\pylsp-venv\bin\pylsp", working directory: "D:\Coding\Python", args: []
-- stderr--
Environment
python
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
Beta Was this translation helpful? Give feedback.
All reactions