I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me.
Go to File > Export Project and select Enable Python Generator. This will create a main.py.
Make sure you pip install PySide6-DS
Hope this helps someone.