SSL Issues Again

Mario4272: <p>Could not fetch URL <a href="https://download.pytorch.org/whl/test/cu118/accelerate/:" rel="noopener nofollow ugc">https://download.pytorch.org/whl/test/cu118/accelerate/:</a> There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘<a href="http://download.pytorch.org" rel="noopener nofollow ugc">download.pytorch.org</a>’, 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<br>
Collecting accelerate (from ai-clone-whatsapp==0.0.1)</p>

ptrblck: <p>The URL is invalid as <code>accelerate</code> is not a valid submodule. Could you explain what this library is?</p>

Mario4272: <p>This was the command I used.  pip install --extra-index-url <a href="https://download.pytorch.org/whl/test/cu118" rel="noopener nofollow ugc">https://download.pytorch.org/whl/test/cu118</a> -e .</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://github.com/kinggongzilla/ai-clone-whatsapp">
  <header class="source">
      <img src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32">

      <a href="https://github.com/kinggongzilla/ai-clone-whatsapp" target="_blank" rel="noopener nofollow ugc">GitHub</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:690/344;"><img src="https://opengraph.githubassets.com/69231d3321c4996cad58bdc45c040e3a2d75f5b9ce683690f80f30ef564c3252/kinggongzilla/ai-clone-whatsapp" class="thumbnail" width="690" height="345"></div>

<h3><a href="https://github.com/kinggongzilla/ai-clone-whatsapp" target="_blank" rel="noopener nofollow ugc">GitHub - kinggongzilla/ai-clone-whatsapp: Create an AI clone of yourself from...</a></h3>

  <p>Create an AI clone of yourself from your WhatsApp chats (using Mistral 7B) - kinggongzilla/ai-clone-whatsapp</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

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

Mario4272: <p>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 <code>accelerate</code> is not a valid submodule</p>

ptrblck: <p>The <code>accelerate</code> library is a HuggingFace lib and is not hosted in the PyTorch S3 bucket which is why the URL is invalid.</p>

Mario4272: <p>I found that out after searching too.  but strangely enough, see this log file:  <a href="https://github.com/kinggongzilla/ai-clone-whatsapp/files/14775182/pytorch.errors.txt" rel="noopener nofollow ugc">https://github.com/kinggongzilla/ai-clone-whatsapp/files/14775182/pytorch.errors.txt</a>  Looks like it fails but then it looks like its successful.  Confused.</p>

ptrblck: <p>These warnings are expected if you provide an invalid URL.<br>
E.g. take a look at this attempt to <code>pip install numpy</code> while also providing an invalid <code>extra-index-url</code>:</p>
<pre data-code-wrap="python"><code class="lang-python">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('&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab6860&gt;: 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('&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab6fb0&gt;: 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('&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab7430&gt;: 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('&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab75e0&gt;: 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('&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff84aab7790&gt;: 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
</code></pre>