Closed ashemedai closed 1 year ago
So I saw that debug log of "python" is not executable
. Which makes sense, because Debian and Ubuntu (and quite a number of other OSes and/or distributions) only install python3
and no python
with Python 3. And I thought this was the cause for the venv failing to be created.
So I figured, let's try a virtual env myself and ran python3 -m venv blah
which reported back with:
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
After installing the python3-venv
package, all the Mason stuff for Python-dependent packages started working.
So somewhere, it might make sense to highlight the need for this package on Debian/Ubuntu and derivatives.
Thank you, @ashemedai, that helped save a lot of time (after I spent a lot of time with the issue first).
This is still an issue, perhaps a quick update to README.md to point to this issue for Debian/Ubuntu systems will help?
This advice now shows up in :checkhealth mason
https://github.com/williamboman/mason.nvim/pull/1358
Perfect, thank you! And thanks for making and sharing Mason!
@williamboman Thanks, I am glad I didn't attempt a documentation PR, this is indeed a much more elegant solution. Silly me for not thinking of adding it to the checkhealth setup.
I've searched open issues for similar requests
Yes
I've recently downloaded the latest plugin version of mason.nvim
Problem description
Various Python-dependent packages were failing to install, despite a
:checkhealth mason
showing that Python was fine.Expected behavior
Either a clean installation or message showing a bit more why it failed to install.
Affected packages
black, clang-format, esbonio, isort
Mason output
Installation log
Then I enabled debug logging, which didn't help much either:
Neovim version (>= 0.7)
NVIM v0.8.1 Build type: Release LuaJIT 2.1.0-beta3 Compiled by runner@fv-az178-366
Operating system/version
Linux wheeljack 5.15.74.2-microsoft-standard-WSL2 #1 SMP Wed Nov 2 19:50:29 UTC 2022 x86_64 GNU/Linux
Healthcheck
Screenshots
No response