Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Trying to pack python application: linuxdeploy::core::elf_file::ElfFileParseError "Invalid magic bytes in file header" #300

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

Open
awesomebytes opened this issue Dec 6, 2024 · 0 comments

Comments

@awesomebytes
Copy link

Hello, I was trying to pack a python app and when I execute:

./linuxdeploy --appdir AppDir --output appimage --plugin python --executable AppDir/usr/bin/my_script.py

I get:

terminate called after throwing an instance of 'linuxdeploy::core::elf_file::ElfFileParseError'
  what():  Invalid magic bytes in file header
Aborted (core dumped)

The script has a shebang:

#!/usr/bin/env python3

And I also have linuxdeploy-plugin-python in my folder (which maybe this is an issue for that repo, sorry if so).

As there isn't any info searching for this particular error on the internet, I thought I'd post it here to see if anyone can enlighten me on what is going on (this is the first time I try linuxdeploy, and first time I try to create an AppImage (from a docker container that I already have)).

If there is a solution, I wonder if doing the same for a bash script is possible (many times a bash script wraps another binary to provide it some convenience inputs/environment variables).

Thank you for any help and your time!

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