Open TheSoldier103 opened 2 years ago
I'm also running into what appears to be a similar issue. I have Zscaler running and have no issues with pip. This has been working in the past, I've installed aws-sam-cli with Zscaler before with no issues.
Here's my error: /homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/pip install -v --ignore-installed /private/tmp/aws-sam-cli-20220812-66258-1bzp5v/aws-aws-sam-cli-d2ded65 Last 15 lines from /Users/xxx/Library/Logs/Homebrew/aws-sam-cli/03.pip: │ exit code: 1 ╰─> See above for output.
If I do a -v though I get: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)'))': /simple/pip/
I have no issues installing packages with pip though with Zscaler. Here's an example running outside of the virtual environment used with this Homebrew install:
pip install wheeltools Collecting wheeltools Downloading wheeltools-0.1.0b1-py2.py3-none-any.whl (9.9 kB) Requirement already satisfied: wheel in /opt/homebrew/lib/python3.9/site-packages (from wheeltools) (0.37.1) Installing collected packages: wheeltools Successfully installed wheeltools-0.1.0b1
My global pip config specifies the Zscaler certificate and also has pypi.org as a trusted-host.
If you have to setup a ~/.pip/pip.conf
for a proxy, non-PyPI mirror, or other settings; you'll like run into what I did above.
It's like the installer is somehow ignoring my local user settings, my PATH for the system Python I run, and all of my environment variables (which I have set for PIP). I can't explain why this works, but on a suggestion from a colleague I tried this and it was instant resolution.
/Library/Application\ Support/pip/pip.conf
(note this is the root (/Library
) version without the hidden directory with the contents of pip.conf
identical to your local user.brew install aws-sam-cli
Hope this helps someone else stuck here where I was!
brew config
outputbrew doctor
outputWhat were you trying to do (and why)?
I am trying to install aws-sam-cli using homebrew. I don't have access to sudo so I can't install sudo in
/opt/homebrew
and I can't runsudo chmod +t /private/tmp
to make it world-writable. i'm not sure those are the issues, but I'm getting errors with pip.What happened (include all command output)?
I get the following errors:
What did you expect to happen?
I expect aws-sam-cli to be installed
Step-by-step reproduction instructions (by running
brew
commands)