Skip to content

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

Description

@awesomebytes

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions