Brénainn Woodsend
Brénainn Woodsend
Is the source directory being prepended to `sys.path`/`PYTHONPATH`? Our own CI also installs PyInstaller without deleting the source copy and that manages to pick up the `site-packages` copy without fuss.
Well can you have the most basic command you can give us that still shows the error. The less unknowns you give us, the less likely we are to have...
That doesn't actually tell us anything.
Just fill out the [issue template](https://github.com/pyinstaller/pyinstaller/blob/develop/.github/ISSUE_TEMPLATE/bug_report.md).
Any idea what harm there would be in using the `fp.read(2) == b"MX"` approach exclusively?
Garbage collect can never collect truly _leaked_ objects so if there really had been a leak then `gc.collect()` wouldn't have fixed it. And if there really had been a leak...
Can you share one of these PNGs so that we're all testing the same thing? I imagine that image resizing is involved in which case the original image dimensions are...
I don't think that using UPX is niche enough that we can smuggle changing it's usage into a minor release. I'd rather have a no-op `--upx` flag for now and...
The correct fix is just to check that `sys.stdout`/`sys.stderr` aren't `None` before attempting to use them. ```python if sys.stderr: sys.stderr.write("...") ``` This is in both [Python](https://docs.python.org/3/library/sys.html#sys.__stderr__) and [PyInstaller's](https://pyinstaller.org/en/v6.7.0/common-issues-and-pitfalls.html#sys-stdin-sys-stdout-and-sys-stderr-in-noconsole-windowed-applications-windows-only) documentation.
The existing resource adding options aren't just there for convenience. Some resources require special handling and using onefile mode prevents you from doing anything post-hoc. But your case has neither...