salt icon indicating copy to clipboard operation
salt copied to clipboard

'pip.installed' is not available

Open robsteneha opened this issue 1 year ago • 1 comments

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.

robsteneha avatar Jun 28 '24 15:06 robsteneha

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:

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!

welcome[bot] avatar Jun 28 '24 15:06 welcome[bot]

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:

  1. A pre-existing machine upgraded pip via a pip.installed state (most likely into version 24.1) and then began displaying this error.
  2. 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:

  1. /opt/saltstack/salt/bin/python3 -m pip install pip==(pre-24.1 version)
  2. Removing and reinstalling salt-minion and salt-common (most likely after step 1) (the removal part may not be necessary)

AriadneT avatar Jul 05 '24 13:07 AriadneT