casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.9k stars 170 forks source link

I get SSL error everytime!! #120

Open worrye opened 1 year ago

worrye commented 1 year ago

Either i am using official waydroid or this, i get the SSL error everytime while installing please help

this is the output: ? Select Android version Android 11 ? Please select an action Install ? Select apps ['gapps'] INFO: Downloading gapps.zip now to /home/user/.cache/waydroid-script/downloads/gapps.zip ..... Traceback (most recent call last): File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 467, in _make_request self._validate_conn(conn) File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn conn.connect() File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connection.py", line 642, in connect sock_and_verified = _ssl_wrap_socket_and_match_hostname( File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connection.py", line 783, in _ssl_wrap_socket_and_match_hostname ssl_sock = ssl_wrap_socket( File "/home/user/waydroidscript/venv/lib/python3.8/site-packages/urllib3/util/ssl.py", line 469, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname) File "/home/user/waydroidscript/venv/lib/python3.8/site-packages/urllib3/util/ssl.py", line 513, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 790, in urlopen response = self._make_request( File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 491, in _make_request raise new_e urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 844, in urlopen retries = retries.increment( File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 515, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='sourceforge.net', port=443): Max retries exceeded with url: /projects/opengapps/files/x86_64/20220503/open_gapps-x86_64-11.0-pico-20220503.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 410, in main() File "main.py", line 406, in main interact() File "main.py", line 313, in interact install_app(args) File "main.py", line 117, in install_app item.download() File "/home/user/waydroid_script/stuff/general.py", line 47, in download loc_md5 = download_file(self.dl_link, self.download_loc) File "/home/user/waydroid_script/tools/helper.py", line 94, in download_file response = requests.get(url, stream=True) File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) File "/home/user/waydroid_script/venv/lib/python3.8/site-packages/requests/adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='sourceforge.net', port=443): Max retries exceeded with url: /projects/opengapps/files/x86_64/20220503/open_gapps-x86_64-11.0-pico-20220503.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))