You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
After upgrading to Poetry 1.3.x, started getting pip exception while installing mysqlclient-2.1.1.tar.gz as it tries to connect to pypi.org which is blocked in my local env. After troubleshooting this, I noticed that pip ignores PIP_INDEX_URL env param, which is set to local Artifactory repo. This seems related to the change done in #6521 to force --isolated while running pip install.
Exception details for reference:
Command ['/Users/abc/.venv/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/Users/abc/.venv', '--no-deps', '/Users/abc/Library/Caches/pypoetry/artifacts/47/f8/c6/4d1cbcf22589ed1f83ad67480a14c2439fe3ce0150972c186091983ff7/mysqlclient-2.1.1.tar.gz'] errored with the following return code 1, and output:
Processing /Users/abc/Library/Caches/pypoetry/artifacts/47/f8/c6/4d1cbcf22589ed1f83ad67480a14c2439fe3ce0150972c186091983ff7/mysqlclient-2.1.1.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
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:1129)'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, 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:1129)'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, 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:1129)'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, 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:1129)'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, 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:1129)'))': /simple/setuptools/
Could not fetch URL https://pypi.org/simple/setuptools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
I verified the install works if I run the same pip install command from above without --isolation and it connects to local Artifactory instead of reaching out to pypi.org.
Is it possible to add a parameter to poetry install to avoid pip isolation if needed, for example poetry install --no-pip-isolation
The text was updated successfully, but these errors were encountered:
We're suddenly running into this issue now too via Artifactory also.
Seems to be quite a tricky one to troubleshoot because it's not clear to me what is actually trying to hit pypi. Is pip just ignoring the configured index (ours is via pip.ini) or is it Poetry?
-vvv
option) and have included the output below.Issue
After upgrading to Poetry 1.3.x, started getting pip exception while installing
mysqlclient-2.1.1.tar.gz
as it tries to connect topypi.org
which is blocked in my local env. After troubleshooting this, I noticed that pip ignoresPIP_INDEX_URL
env param, which is set to local Artifactory repo. This seems related to the change done in #6521 to force--isolated
while running pip install.Exception details for reference:
I verified the install works if I run the same pip install command from above without
--isolation
and it connects to local Artifactory instead of reaching out topypi.org
.Is it possible to add a parameter to
poetry install
to avoid pip isolation if needed, for examplepoetry install --no-pip-isolation
The text was updated successfully, but these errors were encountered: