Skip to content

flet build creates bundle but running it gives ImportError: No module named main error #4444

@OmarBelfeki

Description

@OmarBelfeki

Duplicate Check

Describe the bug

Traceback (most recent call last):
File "", line 47, in
File "", line 222, in run_module
File "", line 142, in _get_module_details
ImportError: No module named main

Code sample

Code
print(error)

To reproduce

...

Expected behavior

No response

Screenshots / Videos

Captures

Screenshot_2024-11-28-23-36-20-36_92b64b2a7aa6eb3771ed6e18d0029815

Operating System

Windows

Operating system details

11

Flet version

0.25

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

Labels

bug: regressionA feature that worked correctly doesn't anymorepackagingRelated to app packaging

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions