Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache AppRun to speed up packing process #367

Open
taozuhong opened this issue Jan 13, 2025 · 0 comments
Open

Cache AppRun to speed up packing process #367

taozuhong opened this issue Jan 13, 2025 · 0 comments

Comments

@taozuhong
Copy link

Due to the networking issue, the packing process failed again and again, could make it cache AppRun to speed up packing process?

INFO:root:Downloading: https://github.com/AppImageCrafters/AppRun/releases/download/v2.0.0/libapprun_hooks-Release-x86_64.so

WARNING:root:Required interpreter 'python' could not be found in the AppDir while processing /home/andytao/Github/kangaroo/build/package/AppDir/usr/bin/event_rpcgen.py
WARNING:root:Required interpreter 'perl' could not be found in the AppDir while processing /home/andytao/Github/kangaroo/build/package/AppDir/usr/bin/sensors-conf-convert
WARNING:root:Required interpreter 'python3' could not be found in the AppDir while processing /home/andytao/Github/kangaroo/build/package/AppDir/usr/lib/gstreamer-1.0/gst-plugins-doc-cache-generator
INFO:root:Downloading: https://github.com/AppImageCrafters/AppRun/releases/download/v2.0.0/libapprun_hooks-Release-x86_64.so
Traceback (most recent call last):
  File "/home/andytao/myenv/bin/appimage-builder", line 8, in <module>
    sys.exit(__main__())
             ^^^^^^^^^^
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/__main__.py", line 50, in __main__
    invoker.execute(commands)
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/invoker.py", line 29, in execute
    command()
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/commands/setup_runtime.py", line 38, in __call__
    runtime_setup.setup()
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_2/apprun2.py", line 107, in setup
    self._deploy_apprun_hooks(resolver, runtime_env)
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_2/apprun2.py", line 271, in _deploy_apprun_hooks
    source_path = apprun_binaries_resolver.resolve_hooks_library(arch)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_binaries_resolver.py", line 50, in resolve_hooks_library
    self._download_release_asset(asset, file)
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_binaries_resolver.py", line 60, in _download_release_asset
    request.urlretrieve(url, path)
  File "/usr/lib/python3.12/urllib/request.py", line 240, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
                            ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 515, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 532, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 1392, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 1348, in do_open
    r = h.getresponse()
        ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
make AppImage installer......[failed]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant