Open jkarasti opened 1 week ago
Hey, thanks for the report. I'm curious: how did you run the dangerzone.exe
, and did you update the installed dependencies? It seems weird that this error wasn't catched by the CI!
Hey, thanks for the report. I'm curious: how did you run the
dangerzone.exe
I've built the executables following the Windows section in BUILD.md with poetry run python .\setup-windows.py build
and then tried to launch dangerzone.exe inside exe.win-amd64-3.12
but hit the above error. Interestingly enough, running Dangerzone with poetry run .\dev_scripts\dangerzone.bat
instead of the executables produced by cx_freeze works a-okay.
Did you update the installed dependencies?
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 4abd4720 (commit before on-host PR) regradless of which version of cx_freeze or pymupdf is installed
It seems weird that this error wasn't catched by the CI!
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 cx-Freeze
to fix the underlying issue: https://github.com/marcelotduarte/cx_Freeze/issues/2653
(well, the real underling issue is PyMuPDF's... particular way of using __init__.py
, but I digress)
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?
After #748 got merged, running
dangerzone.exe
ordangerzone-cli.exe
both result in an error.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: