-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salt 3000 and master don't work with default pip (9.0.1) on windows #56390
Comments
To clarify, the 0.9.1 version of pip is the oldest we try to support, not the default pip version that salt requires to work. |
I know, doesn't impact the issue, it's just wording. :) |
I meant it's the default version of pip that the windows installer comes with. |
i can confirm that this is technically an upstream issue here pypa/pip#4437 that has been fixed with newer versions of pip. What is happening is Now what i'm still trying discover is why in our salt packages 3000 If you take a look at the site-packages dir between both package versions you can see a difference:
in salt 3000 the salt dir is here Either way i do not think we need to block a release since its technically an upstream issue that needs to handle situations when site.USER_SITE is None. Will continue to do some investigation to figure out why it is None in this release. |
okay i've figured this one out. I was able to bisect this issue to a399d7f which is PR #55817 The problem line is here https://github.com/saltstack/salt/pull/55817/files#diff-d27e77cec6710027bb120a9dc4f1b959R45 There is a known open issue here: https://bugs.python.org/issue31798 When site.py runs I was also able to get this use case down to a smaller state file:
To note the line that is actually causing this issue is
its the module refresh that is causing this issue. So we have two upstream issues that are causing issues. Sure we could upgrade the pip version to ensure we handle the There is also this issue pythonnet/pythonnet#559 to track this on pythonnets/clr's end. |
Just to clarify, is this the case for both Python2 and Python3 on windows? And in the meantime is the proper workaround to not |
marked |
This is believed to be fixed in Python 3.8 which will be shipped with the Silicon release. Will revisit this issue once Silicon has been released. |
This is fixed on master. I was able to use |
Description of Issue
pip.installed is not available on salt 3000 or the head of master on older versions of pip on windows
https://gitlab.com/saltstack/employees/sre/bryceml/ec2-amis/-/jobs/473544805
fails with salt 3000 and default pip (9.0.1).
https://gitlab.com/saltstack/employees/sre/bryceml/ec2-amis/-/jobs/473602961
succeeds with salt 2019.2.3 and default pip (9.0.1).
are the states I used
If I use salt 3000 or the head of master and upgrade to pip 20.0.2 it works.
When it doesn't work, I get this as a traceback:
The text was updated successfully, but these errors were encountered: