Android Studio: Error while downloading chaquopy-libgfortran

I’ve tried to use Python on my Android app using Chaquopy. But I’ve got some error as I listed bellow. I don’t know what’s wrong since the error not showing anything. Did I do something wrong with the pip install or there is some alternative to do this task?

Collecting chaquopy-libgfortran==4.9
  Downloading https://chaquo.com/pypi-13.1/chaquopy-libgfortran/chaquopy_libgfortran-4.9-0-py3-none-android_21_x86_64.whl (541 kB)
ERROR: Exception:
Traceback (most recent call last):
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_vendorurllib3response.py", line 425, in _error_catcher
    yield
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_vendorurllib3response.py", line 507, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_vendorcachecontrolfilewrapper.py", line 62, in read
    data = self.__fp.read(amt)
  File "C:UsersKeziaAppDataLocalProgramsPythonPython38libhttpclient.py", line 454, in read
    n = self.readinto(b)
Exception:

  File "C:UsersKeziaAppDataLocalProgramsPythonPython38libhttpclient.py", line 498, in readinto
    n = self.fp.readinto(b)
  File "C:UsersKeziaAppDataLocalProgramsPythonPython38libsocket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "C:UsersKeziaAppDataLocalProgramsPythonPython38libssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "C:UsersKeziaAppDataLocalProgramsPythonPython38libssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalclibase_command.py", line 188, in _main
    status = self.run(options, args)
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalclireq_command.py", line 185, in wrapper
    return func(self, options, args)
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalcommandsinstall.py", line 335, in run
    requirement_set = resolver.resolve(
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalresolutionlegacyresolver.py", line 179, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalresolutionlegacyresolver.py", line 362, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalresolutionlegacyresolver.py", line 314, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internaloperationsprepare.py", line 413, in prepare_linked_requirement
    local_file = unpack_url(
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internaloperationsprepare.py", line 197, in unpack_url
    file = get_http_url(
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internaloperationsprepare.py", line 126, in get_http_url
    from_path, content_type = _download_http_url(
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internaloperationsprepare.py", line 223, in _download_http_url
    for chunk in download.chunks:
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalcliprogress_bars.py", line 166, in iter
    for x in it:
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_internalnetworkutils.py", line 15, in response_chunks
    for chunk in response.raw.stream(
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_vendorurllib3response.py", line 564, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_vendorurllib3response.py", line 529, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "C:UsersKeziaAppDataLocalProgramsPythonPython38libcontextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebuglibsite-packagespip_vendorurllib3response.py", line 430, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='chaquo.com', port=443): Read timed out.
Chaquopy: Exit status 2

> Task :app:generateDebugPythonRequirements FAILED
Execution failed for task ':app:generateDebugPythonRequirements'.
> Process 'command 'C:UsersKeziaDownloadsPersonalAppappbuildpythonenvdebugScriptspython.exe'' finished with non-zero exit value 1 

This is my build.gradle file used on my project and I think there is nothing wrong with it.

      python {
        version "3.8"
        buildPython "C:/Users/Kezia/AppData/Local/Programs/Python/Python38/python.exe"
        pip{
          install "numpy"
          install "opencv-python"
        }
      }

4

I found the problem, since I used gradle version 8.4 seems like it’s not support Chaquopy yet. So I use gradle version 8.3 and it’s working now.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật