Replies: 2 comments 1 reply
-
Posting the build terminal output below:
|
Beta Was this translation helpful? Give feedback.
-
Hi - I think this problem looks a lot like the one that I have encountered with Pytorch. We have found that Flet is removing some files when using Flet build, namely Bin, .py and .pyc. This causes the app to launch, but report that it is missing components, just like yours is. I have a built a runtime patch using files from cx_freeze. I have detailed the approach in this thread, and also shared some rough code on how the patching is working. #3060 I'm unsure if you dev both Mac/Windows.. but if anything, I think the patch should be easier on Windows, as you should just be able to patch the Dir after Flet Build has created it, if not, then patching the runtime cache should be similar to the above. I am yet to do it on Windows as I used Flet Pack before realising I needed Flet Build for MacOS |
Beta Was this translation helpful? Give feedback.
-
Question
I'm a bit lost with debugging an app build for Windows. I have developed an app using pydantic (among other third-party non-pure Python packages). Using
flet build windows --verbose
it builds happily but on run it returns an error saying that the pydantic module is not found.Does anyone have any idea what I'm doing wrong or what I should investigate?
Code sample
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions