Replies: 1 comment
-
Based on the references to I haven't used SwoopyUI or weasyprint, so I can't comment with specifics. However, the stack trace suggests that weasyprint isn't a complete wheel - that is, it doesn't include all the binaries that it needs at runtime. Instead, it's assuming it can dynamically load a However, you might be able to make it work. There's essentially two possible approaches:
I guess there's also a third option of "fix weasyprint so that its wheels are self-contained". That might end up being the easier approach. |
Beta Was this translation helpful? Give feedback.
-
I have a python script that uses Weasyprint to generate PDFs. I am using swoopyui for the interface and briefcase to package it. When I open the app after briefcase creates it, I get a window with "Application crashed. An unexpected error occurred. Please see the traceback below for more information."
Below are the requirements.txt and the imports from the project.
requirements.txt
app.py
bcg.py
I more or less expected Weasyprint to cause a problem, and I think I basically understand why it is a problem. My question is, is there a workaround? Is there a way to package this app so that it runs as an app? For my purposes, it works just as well if Weasyprint's dependencies are bundled in the app or if the app is able to utilize resources that are
brew install
ed independently.I would be grateful for any insight on this matter.
Beta Was this translation helpful? Give feedback.
All reactions