SSL Issues Again

Could not fetch URL https://download.pytorch.org/whl/test/cu118/accelerate/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘download.pytorch.org’, port=443): Max retries exceeded with url: /whl/test/cu118/accelerate/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)’))) - skipping
Collecting accelerate (from ai-clone-whatsapp==0.0.1)

The URL is invalid as accelerate is not a valid submodule. Could you explain what this library is?

This was the command I used. pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 -e .

I saw this and assumed PyTorch was the issue:
There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘[download.pytorch.org](http://download.pytorch.org)’, port=443)

After all that, I went through and logged it out and it seems like it installed everything after all. Which is now strange to be because you said it accelerate is not a valid submodule

The accelerate library is a HuggingFace lib and is not hosted in the PyTorch S3 bucket which is why the URL is invalid.

I found that out after searching too. but strangely enough, see this log file: https://github.com/kinggongzilla/ai-clone-whatsapp/files/14775182/pytorch.errors.txt Looks like it fails but then it looks like its successful. Confused.

These warnings are expected if you provide an invalid URL.
E.g. take a look at this attempt to pip install numpy while also providing an invalid extra-index-url:

pip install --extra-index-url https://invalidurl.where.numpy.is.not.located.org/whl numpy
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://invalidurl.where.numpy.is.not.located.org/whl
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab6860>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/numpy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab6fb0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/numpy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab7430>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/numpy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab75e0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/numpy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab7790>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/numpy/
Collecting numpy
  Downloading numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 3.1 MB/s eta 0:00:00
Downloading numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 21.5 MB/s eta 0:00:00
Installing collected packages: numpy
1 Like