How to get rid of SSLError while poetry install on Windows

sevenc_nanashi

Nanashi.

Posted on May 5, 2023

How to get rid of SSLError while poetry install on Windows

Who should read this?

  MaxRetryError

  HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /user/repo/info/refs?service=git-upload-pack (Caused by SSLError(FileNotFoundError(2, 'No such file or directory')))

  at .venv\Lib\site-packages\urllib3\util\retry.py:592 in increment
      588│             history=history,
      589│         )
      590│
      591│         if new_retry.is_exhausted():
    → 592│             raise MaxRetryError(_pool, url, error or ResponseError(cause))
      593│
      594│         log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
      595│
      596│         return new_retry
Enter fullscreen mode Exit fullscreen mode

If you are stacking in this error, you should read this.

Solution

Delete (or comment out) these lines in C:\ProgramData\Git\config:

[http]
        sslCAinfo = /bin/curl-ca-bundle.crt
Enter fullscreen mode Exit fullscreen mode

Conclusion

What a short article lol
Thank you for reading, I hope that you're helped with this article.

💖 💪 🙅 🚩
sevenc_nanashi
Nanashi.

Posted on May 5, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related