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.88k stars 170 forks source link

failed to install libndk #164

Closed zhouxingoddog312 closed 6 months ago

zhouxingoddog312 commented 6 months ago

When i entry sudo venv/bin/python3 main.py install libndk, it shows INFO: Downloading libndktranslation.zip now to /home/goddog312/.cache/waydroid-script/downloads/libndktranslation.zip ..... And then freezed. I have to entry ctrl + c, and this is the informations:

^CTraceback (most recent call last):
  File "/var/home/goddog312/workspace/github/waydroid_script/main.py", line 358, in <module>
    main()
  File "/var/home/goddog312/workspace/github/waydroid_script/main.py", line 351, in main
    args.func(args)
  File "/var/home/goddog312/workspace/github/waydroid_script/main.py", line 113, in install_app
    item.install()
  File "/var/home/goddog312/workspace/github/waydroid_script/stuff/general.py", line 174, in install
    self.download()
  File "/var/home/goddog312/workspace/github/waydroid_script/stuff/general.py", line 47, in download
    loc_md5 = download_file(self.dl_link, self.download_loc)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/tools/helper.py", line 94, in download_file
    response = requests.get(url, stream=True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/sessions.py", line 725, in send
    history = [resp for resp in gen]
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/sessions.py", line 266, in resolve_redirects
    resp = self.send(
           ^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request
    self._validate_conn(conn)
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
    conn.connect()
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/connection.py", line 653, in connect
    sock_and_verified = _ssl_wrap_socket_and_match_hostname(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/connection.py", line 806, in _ssl_wrap_socket_and_match_hostname
    ssl_sock = ssl_wrap_socket(
               ^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/util/ssl_.py", line 465, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/goddog312/workspace/github/waydroid_script/venv/lib64/python3.12/site-packages/urllib3/util/ssl_.py", line 509, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/ssl.py", line 1042, in _create
    self.do_handshake()
  File "/usr/lib64/python3.12/ssl.py", line 1320, in do_handshake
    self._sslobj.do_handshake()
KeyboardInterrupt