flet
flet copied to clipboard
After building windows app, xlwings comes out error: AttributeError: 'NoneType' object has no attribute 'apps'
My flet app use xlwings to get excel data. It's OK when I use flet run main.py.
However it's not OK after packing. After running flet build windows, I get "myapp\build\windows\myapp.exe". By clicking myapp.exe, the out.log shows AttributeError: 'NoneType' object has no attribute 'apps' at the code app = xlwings.App(visible=True, add_book=False).
I don't know why the desktop app cannot call Excel successfully, anyone have ideas?
I'm not sure if this is a similar issue to what I've been having, but I found since 0.21.0 page.update() and page.go() do not appear to run synchronously in a synchronous context - in 0.20.2 it would however, which necessitated some refactoring to avoid breaking things. I'm not sure if this is intended behaviour or not with the recent update however.