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
Since for a long I was building with the same method flet app for android and compile them in windows with >Flet build apk method. All my imports (from py file to main.py pr other) are failing. If main.py is inthe same folder with mz class.py file ot works but if it is in dirrent folder it completely give ModuleNotFoundError. I tried absolute, relative methods adding sys.path to folders. Creating extra zip file and import them all failed. I need urgent to complete my projects in time. I need to understans if it is general problem or for me and how to solve this issue.
I created a small model project to present my problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Since for a long I was building with the same method flet app for android and compile them in windows with >Flet build apk method. All my imports (from py file to main.py pr other) are failing. If main.py is inthe same folder with mz class.py file ot works but if it is in dirrent folder it completely give ModuleNotFoundError. I tried absolute, relative methods adding sys.path to folders. Creating extra zip file and import them all failed. I need urgent to complete my projects in time. I need to understans if it is general problem or for me and how to solve this issue.
I created a small model project to present my problem.
Thank you for support
Ozkan
Except venv and build section I compressed the complete project in zip file. Or share all files as straight text format.
My System and Files in Text.txt
app-release.apk in text structure
app.zip in text structure
complete project
I am using FLET==0.28.3
1-PROJECT FOLDER STRUCTURE ##################################
WHOIS
├── README.md
├── pyproject.toml
├── app
│ ├── assets
│ │ └── .....
│ ├── ui_classes
│ │ ├── init.py (empty)
│ │ └── folder_deneme.py
│ ├── init.py (empty)
│ ├── deneme.py
│ └── main.py
├── src
├── venv
└── storage
├── data
└── temp
Beta Was this translation helpful? Give feedback.
All reactions