You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the opened issues and there are no duplicates
Describe the bug
Hi,
I have an issue when using my build flet app on Windows. When opening it and I greeted to an error with the error info being
import win32com.client
ModuleNotFoundError: No module named 'win32com'
My app works fine running it in the terminal but for some reason the built flet app hates win32com. And yes, it is in my requirements.txt but that doesn't seem to matter
Code sample
Code
importwin32com.client
To reproduce
Add "import win32com.client" to code that is built using Flet
Expected behavior
It is expected to launch like how it does within the terminal but throws an error on the built application
Screenshots / Videos
Captures
Operating System
Windows
Operating system details
Windows 11
Flet version
27.6
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered:
I feel like this issue would be resolved if there was an option in Flet build for --hidden-import like there is for Flet Pack https://flet.dev/docs/reference/cli/pack. Can this option be added for flet build?
I have tried using flet pack over flet build and while the --hidden-import does infact allow me to built my flet app for windows, I much preferred the output of flet build and the way flet pack doesn't really satisfy my needs. Is the hidden import argument able to be added to flet build @ndonkoHenri@FeodorFitsner ?
Duplicate Check
Describe the bug
Hi,
I have an issue when using my build flet app on Windows. When opening it and I greeted to an error with the error info being
My app works fine running it in the terminal but for some reason the built flet app hates win32com. And yes, it is in my requirements.txt but that doesn't seem to matter
Code sample
Code
To reproduce
Add "import win32com.client" to code that is built using Flet
Expected behavior
It is expected to launch like how it does within the terminal but throws an error on the built application
Screenshots / Videos
Captures
Operating System
Windows
Operating system details
Windows 11
Flet version
27.6
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered: