-
Notifications
You must be signed in to change notification settings - Fork 173
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
Executables built with cx_freeze broken after On-host pixels to PDF conversion PR was merged #974
Comments
Hey, thanks for the report. I'm curious: how did you run the |
I've built the executables following the Windows section in BUILD.md with
I've tried to get Dangerzone running with a myriad of combinations of versions of cx_freeze between 7.2.0 and latest and pymupdf between 1.23.3 and latest. As far as I can tell, Dangerzone runs from commit 4abd472 (commit before on-host PR) regradless of which version of cx_freeze or pymupdf is installed
At a cursory glance, I don't think CI runs the .exe that cx_freeze builds, so I don't think this particular edge case can get caught in the first place. |
Ok, I just managed to reproduce it on my Windows machine. I have notified the developer of (well, the real underling issue is PyMuPDF's... particular way of using You can apply this workaround in the meantime to make progress: diff --git a/setup-windows.py b/setup-windows.py
index deae943..70291ad 100644
--- a/setup-windows.py
+++ b/setup-windows.py
@@ -4,7 +4,7 @@ from cx_Freeze import Executable, setup
with open("share/version.txt") as f:
version = f.read().strip()
-packages = ["dangerzone", "dangerzone.gui"]
+packages = ["dangerzone", "dangerzone.gui", "pymupdf.utils"]
setup(
name="dangerzone", As always, muchas gracias for the help on the Wix front. I plan to be more involved with your PR once we're done with the 0.8.0 release. |
What happened?
On-host pixels to PDF conversion merged in #748 uncovered an incompatibility between pumypdf and cx_freeze which causes an error when running
dangerzone.exe
ordangerzone-cli.exe
built with cx_freeze.operating system version
Windows 10 Pro 22H2 (OS Build 19045.5073)
Dangerzone version
Top of main branch
Docker info
No response
Document conversion logs
No response
Additional info
Here's the error log I got:
The text was updated successfully, but these errors were encountered: