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
Code compiled with 5.6+ doesn't run #7189
Comments
Can you give us the names of this images? e.g. is it |
Correct, we're using the Bullseye image of bitnami minideb for the resulting container. And the first stage of the build uses python:3.10-bullseye |
Hmm, yeah... 5.4 (and also 5.5) seems to collect expat library as |
Caused by af2cd69 according to bisect. |
Although I can't see why. |
Yeah, I also just bisected it to af2cd69... |
There's probalby a symlink resolution that slipped in somewhere... |
Ah, it's because it now constructs destination name based on resolved npth, which resolves the symlink. |
Yeah. Previously, |
(Also, yet again I find I'm cursing myself for not refactoring away that |
Yeah, the design was broken, but it had no effect earlier because we populate preservation paths only on Windows, so the former else branch was always taken on linux and macOS. But after the refactoring, the symlink resolution became effectively active on linux and macOS - which would become a problem once we tried to turn on shared lib directory structure preservation on those OSes. I think the fix is to simply remove the |
And, once we start supporting symlinks, we should detect symlinks and collect both the link and its target file. |
Sounds good to me. Looks like another patch release then... Don't think PyInstaller has ever reached an |
Description of the issue
Using PyInstaller to compile a Flask app to run in Docker. We're doing a multi-stage build with the compilation happening on the first stage in the official Python 3.10 Debian image, and the binary is run on a second Debian (MiniDeb) image. Manually setting the version of PyInstaller to 5.4 resolves the issue. Did not test with 5.5, issue is present on 5.6 and 5.6.1
Context information (for bug reports)
Output of
pyinstaller --version
:Not applicable in a non-functional Docker container, but each build pulls the most recent version
Version of Python: 3.10
Platform: Debian (MiniDeb) Bullseye
How you installed Python: Official Python docker image
Did you also try this on another platform? Does it work there?: N/A
try the latest development version, using the following command:
(https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong) and
Make sure everything is packaged correctly
--noupx
or setupx=False
in your .spec-file--debug
topyi-makespec
orpyinstaller
or useEXE(..., debug=1, ...)
in your .spec file.A minimal example program which shows the error
Stacktrace / full error message
Please also see https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs
for more about what would use to solve the issue.
The text was updated successfully, but these errors were encountered: