pip.installed not available with pip 9.0.2 #46611
Comments
I believe this might be the same issue mentioned here: #44980 (comment) |
Attempted the locations.py patch from #44980 without luck. Downgrading to pip 9.0.1 did work though per this comment.
pip 9.0.2 from /usr/local/lib/python2.7/dist-packages (python 2.7), Ubuntu 14.04 |
Seems similar to #44980. The pip module isn't available because something isn't loading right, which definitely seems like an upstream issue. |
pypa/pip#5101 actually should be the right fix. |
This looks like it may not get fixed, or it will surely get broken in pip 10, which is going to be released soon @garethgreenaway The pip maintainers are stressing that https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program |
Thankfully the fixed it with 9.0.3 - which is the right thing considering this wasn't an advertised breaking change or semantic versioned correctly. I'm surprised by the best practice/recommendation to never use |
I seem to have this issue running on version 9.0.1 on Ubuntu 18.04. It also still happens if I do Relevant state: # makes sure python-pip and python3-pip are installed
python-pip:
pkg.installed:
- pkgs:
- python-pip
- python3-pip
# installs python2 version of tensorflow
tensorflow:
pip.installed:
- name: tensorflow
- require:
- pkg: python-pip Some Log Lines:
It works fine when I run the state explicitly, but not when running from highstate. |
@bryceml I have this problem too, with 9.0.1 on Gentoo Linux. I just updated to 2019.2. How did you solve your problem? EDIT: it disappeared after a restart, maybe there where problems when I updated the python version from 2.7 to 3.6. |
+1 |
Description of Issue/Question
Attempting to run highstate against a minion with multiple pip.installed definitions results in an exception:
However, this only occurs if the pip version is 9.0.2, and not if the pip version 9.0.1. When the pip version is 9.0.1, the highstate functions normally. This occurs regardless of whether I refresh the modules.
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
Define the pip.installed definition as above, install pip 9.0.2 on the minion. Results in:
If run on the minion:
Downgrade pip to 9.0.1 (with
pip install pip==9.0.1
) and the highstate is correctly applied.Versions Report
No difference between master and minion versions.
The text was updated successfully, but these errors were encountered: