Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

ssl.SSLError: [ASN1] nested asn1 error (_ssl.c:4004)

Open piduc opened this issue 2 years ago • 1 comments

When I click on run.bat on my windows OS i get this error:

python_embeded\lib\site-packages\torch\hub.py", line 620, in download_url_to_file
    u = urlopen(req)
  File "urllib\request.py", line 216, in urlopen
  File "urllib\request.py", line 519, in open
  File "urllib\request.py", line 536, in _open
  File "urllib\request.py", line 496, in _call_chain
  File "urllib\request.py", line 1391, in https_open
  File "urllib\request.py", line 1317, in do_open
  File "http\client.py", line 1421, in __init__
  File "ssl.py", line 771, in create_default_context
  File "ssl.py", line 592, in load_default_certs
  File "ssl.py", line 584, in _load_windows_store_certs
ssl.SSLError: [ASN1] nested asn1 error (_ssl.c:4004)

D:/Fooocus>pause
Press any key to continue . . .

After a few tries I got now this error:

\python_embeded\lib\site-packages\torch\hub.py", line 620, in download_url_to_file
    u = urlopen(req)
  File "urllib\request.py", line 216, in urlopen
  File "urllib\request.py", line 519, in open
  File "urllib\request.py", line 536, in _open
  File "urllib\request.py", line 496, in _call_chain
  File "urllib\request.py", line 1391, in https_open
  File "urllib\request.py", line 1317, in do_open
  File "http\client.py", line 1421, in __init__
  File "ssl.py", line 771, in create_default_context
  File "ssl.py", line 592, in load_default_certs
  File "ssl.py", line 584, in _load_windows_store_certs
ssl.SSLError: not enough data: cadata does not contain a certificate (_ssl.c:3989)

piduc avatar Dec 09 '23 23:12 piduc

@piduc May be related to https://github.com/lllyasviel/Fooocus/issues/1311#issuecomment-1852804140 (includes a fix for ssl issues in general). Please make sure you use the latest version of Fooocus, retry and check if the isue still exists. Thanks.

mashb1t avatar Dec 29 '23 03:12 mashb1t

closing as stale, feel free to reopen when providing new information

mashb1t avatar Jan 02 '24 22:01 mashb1t