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

Not working with PyInstaller #1

Open
vdun opened this issue Dec 13, 2022 · 1 comment
Open

Not working with PyInstaller #1

vdun opened this issue Dec 13, 2022 · 1 comment

Comments

@vdun
Copy link

vdun commented Dec 13, 2022

# cat h.py
print('hello')
# pyinstaller -F -c h.py
...
# cat ./dist/h | elfexec
[1518521] Cannot open PyInstaller archive from executable (/memfd:elfexec (deleted)) or external archive (/memfd:elfexec (deleted).pkg)
@abbat
Copy link
Owner

abbat commented Dec 17, 2022

PyInstaller use bootloader and try to open executed file itself via /proc/self/exe to unpack it to temppath/_MEIxxxxxx. But if you cat-ing executable file, where is no file on disk to open:

readlink("/proc/self/exe", "/memfd:elfexec (deleted)", 4095) = 24
openat(AT_FDCWD, "/memfd:elfexec (deleted)", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/memfd:elfexec (deleted).pkg", O_RDONLY) = -1 ENOENT (No such file or directory)

I have no idea how to workaround it with PyInstaller binaries.

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

2 participants