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

Webcord failing to install on Fedora 37 aarch64 #117

Open
cobalt2727 opened this issue Nov 22, 2023 · 8 comments
Open

Webcord failing to install on Fedora 37 aarch64 #117

cobalt2727 opened this issue Nov 22, 2023 · 8 comments
Labels
bug Something isn't working sponsor needed Sponsorship required to prioritize

Comments

@cobalt2727
Copy link

Project with incorrect version

This behavior does not occur on x86_64 Fedora 37, only aarch64.

When trying to install Webcord it seems like it's targeting the AppImage, instead of the arm64 RPM like it should.

To Reproduce

What command have you run, e.g. lastversion <project location> --verbose
Get an aarch64 Fedora 37 environment, then run sudo lastversion install webcord. You'll be met with the following:

Traceback (most recent call last):
  File "/usr/bin/lastversion", line 33, in <module>
    sys.exit(load_entry_point('lastversion==3.3.2', 'console_scripts', 'lastversion')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lastversion/lastversion.py", line 591, in main
    return install_app_image(
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lastversion/lastversion.py", line 374, in install_app_image
    extract_appimage_desktop_file(app_file_name)
  File "/usr/lib/python3.11/site-packages/lastversion/utils.py", line 172, in extract_appimage_desktop_file
    subprocess.call([appimage_path, "--appimage-extract"], cwd=temp_dir)
  File "/usr/lib64/python3.11/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.11/subprocess.py", line 1950, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/root/Applications/WebCord.AppImage'

Expected behavior

I would expect it to download the RPM instead of the AppImage

Program output

see above

Support This Project

tempting offer but I am broke

@cobalt2727 cobalt2727 added the bug Something isn't working label Nov 22, 2023
@cobalt2727
Copy link
Author

Can't think of any other repos that offer both arm64 RPMs and AppImages off the top of my head, but if you've got links to any I can test them, too.

cobalt2727 added a commit to cobalt2727/L4T-Megascript that referenced this issue Nov 22, 2023
will re-enable the script once dvershinin/lastversion#117 is resolved. Currently non-functional.
@dvershinin
Copy link
Owner

@cobalt2727 Hi, was lastversion itself installed as an RPM package? or via pip?

@cobalt2727
Copy link
Author

RPM (for both x64 and aarch64)

@cobalt2727
Copy link
Author

Can also confirm it's using the latest version of lastversion, this was tested with a fresh install on a VM.

@cobalt2727
Copy link
Author

@dvershinin Still happening with the most recent version, unfortunately

@dvershinin
Copy link
Owner

@cobalt2727 I don't use an aarch64 machine so it's hard for me to reproduce and fix this. The existing code for checking which assets are applicable is a mess anyway. I can suggest to use --filter REGEX to get the desired assets.

@cobalt2727
Copy link
Author

does that work with the lastversion install command, or should I just swap my script back to manually downloading the assets first? either way is fine by me

@dvershinin
Copy link
Owner

Yes it should work with the install command.

@dvershinin dvershinin added the sponsor needed Sponsorship required to prioritize label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sponsor needed Sponsorship required to prioritize
Projects
None yet
Development

No branches or pull requests

2 participants