'pip.installed' is not available
This is to reopen the issue https://github.com/saltstack/salt/issues/55247
I am also facing the same issue where python3-pip (system) is required to install anything using the virtual-env pip. bin_env also doesn't help in this case unless the pip is installed on system.
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
- Community Wiki
- Salt’s Contributor Guide
- Join our Community Slack
- IRC on LiberaChat
- Salt Project YouTube channel
- Salt Project Twitch channel
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
I don't know anything about virtual-env pip or bin_env, but this appeared in a few Ubuntu machines along with another pip-related error I described in saltstack/relenv#186. This happened in one of two ways:
- A pre-existing machine upgraded pip via a pip.installed state (most likely into version 24.1) and then began displaying this error.
- A machine had pip version 24.1 installed during its installation/highstate, resulting in the other pip-related error. Downgrading pip afterwards can result in this error appearing during pip.installed states.
Installing a downgraded pip version might allow machines to avoid this error. If they already have it, one of the following may help:
-
/opt/saltstack/salt/bin/python3 -m pip install pip==(pre-24.1 version) - Removing and reinstalling salt-minion and salt-common (most likely after step 1) (the removal part may not be necessary)