How to make APK from Flet using Serious Python

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 73

  • @محمدالعوادي-س2ظ
    @محمدالعوادي-س2ظ Год назад +4

    This is unprecedented! Thanks a lot.
    I like your step-by-step, easy-to-follow explanation. It's way better than the official flet tutorials.
    It seems that you're from Iran. Anyway, wherever you are from, I send you warm greetings from Iraq.
    I hope you a great day! ^_^

  • @parasShahSudo
    @parasShahSudo Месяц назад

    Hello there I wanted to use torch==1.6.0 for my apk but the code gave an error: ERROR: No matching distribution found for torch==1.6.0 Maybe because the official pytorch website does not mention but its wheel is available on the web. So I was wondering if I can build the package executable using the wheel??

  • @relaxedconcentration
    @relaxedconcentration Год назад +6

    I'm getting the error "Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0", I don't know how to solve it, can you help me ?

    • @MrDjango1998
      @MrDjango1998  Год назад

      DId you download the zip file and did it with the make.zip file and the run_app file?

    • @parasShahSudo
      @parasShahSudo Месяц назад

      I'm also getting the same error. Could it be an error due to heavy libraries because I have added libraries such as numpy, torch, scikit-learn in my flet app?

  • @ericmichel2963
    @ericmichel2963 Месяц назад

    after "dart run serious_python:main package app/src" messag :
    Error: Unable to find git in your PATH.

  • @CrazyFlyKite
    @CrazyFlyKite Год назад +1

    Good! Worked!
    The process is kinda HARDER than I thought.
    But how to change app's configurations (name, icon, etc…)? I really don't want to see "flet_example" with Flutter icon.
    If you'll say how - this is truly the best tutorial!

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 6 месяцев назад +1

    that's actually cool, I feel like a hacker!

  • @amirazadehranjbar6844
    @amirazadehranjbar6844 Год назад

    Exactly what I was looking for!
    Thanks!💯

  • @becla-ing
    @becla-ing 11 месяцев назад

    Thank you very much for the teaching, I have a question, if you have 3 or more .py files, do I paste all the files in the src folder of make_app? Thank you very much again.

  • @bennguyen1313
    @bennguyen1313 6 месяцев назад

    What's the difference between a flet/flutter project targeted as a browser web-app vs desktop application?
    And aside from the book, what is *SERIOUS* Python ? A package/library.. a coding style.. ?
    I'm interested in a Windows application that can read data from a usb serial-com

  • @stephenwilkinson2228
    @stephenwilkinson2228 Год назад +1

    I keep getting the error "I/flutter (15100): Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0"
    I've run the app.zip exactly as in your tutorial, and I read someone else having the same problem resolved it by removing "if __name__ == '__main__':", tried that and still no dice.
    Anyone have any suggestions?

    • @bridgeon7502
      @bridgeon7502 Год назад

      I got the same thing, where is the _name_ == __main__ thing I can't find it

    • @stephenwilkinson2228
      @stephenwilkinson2228 Год назад

      @@bridgeon7502 that is something you write yourself, in your python code. If you specifically haven't wrote it it won't be there
      If you're still having the same issue, make sure that your ft.app(target=main) line is not indented under any procedure. It should be your last line and not indented

    • @bridgeon7502
      @bridgeon7502 Год назад

      @@stephenwilkinson2228 Still doesn't work :/

    • @stephenwilkinson2228
      @stephenwilkinson2228 Год назад

      @@bridgeon7502 what error are you getting?

  • @MottiBazar
    @MottiBazar Год назад

    Great video! When will you release the next video? Thanks!

  • @eiji1136
    @eiji1136 8 месяцев назад

    i did the step-by-step, but, when I use "flutter build apk -- release", this error appears "[!] No Android SDK found. Try setting the ANDROID_HOME environment variable."

  • @YevgenPHKryvtsov
    @YevgenPHKryvtsov 7 месяцев назад +1

    Downloading and extracting Python into C:\Users\CANCEL~1\AppData\Local\Temp\hostpython3.10..... I'm stuck on this line, not going any further 😢

    • @deepakpune1
      @deepakpune1 7 месяцев назад

      same here. stuck at this line - how to proceed

  • @15shaikhshahid92
    @15shaikhshahid92 9 месяцев назад +1

    This is a great video but I still have a doubt like what a serious python file can you plz make a detailed cause I have to specify things in my project, and I'll be appreciated if you help me to explain that

  • @Eduardo-ug9ui
    @Eduardo-ug9ui Год назад +2

    me dio este error al compilarlo todo Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0

    • @MrDjango1998
      @MrDjango1998  Год назад

      Did you download the app.zip file and do it according to that?

    • @Eduardo-ug9ui
      @Eduardo-ug9ui Год назад +1

      @@MrDjango1998 ya lo solucione. El error que tenía es que usaba if name main y ahí ejecutaba la app. Por ende no me funcionaba. Se lo quite y si me funciono todo.

    • @MrDjango1998
      @MrDjango1998  Год назад

      excelente@@Eduardo-ug9ui

    • @yucelbayraktar2847
      @yucelbayraktar2847 11 месяцев назад

      Hello, you explained it very well. When I open the json file with open and perform the operation, android studio gives an os error. How can I fix

  • @ProPython
    @ProPython 5 месяцев назад

    how to manage flet app which uses opencv, numpy etc?

  • @odiio3402
    @odiio3402 5 месяцев назад

    Why flet doesn't support the command build apk anymore?

  • @khabbazz89
    @khabbazz89 5 месяцев назад

    how do it without android studio ide
    ?

  • @rizkaaulia9399
    @rizkaaulia9399 Год назад

    I wasting many time to find how to build flet apk. Thanks bro, i just have 3 days to submit my project to my lecturer

  • @goncaze
    @goncaze Год назад

    Great! When will the second video come?

  • @akusins
    @akusins Год назад

    Big thanks Mate for this instruction! 🥳 I feel confused Flet homepage does not have such explanation

  • @mndtr0
    @mndtr0 8 месяцев назад

    It's a little bit complicated (I mean there nothing hard but this takes some time and attention) so I hope Flet project will integrate into Android Studio and we will be able to just make apps instead of dragging files by hand to pack them into apk file...

  • @Eduardo-ug9ui
    @Eduardo-ug9ui Год назад

    Pregunta asi rapida. Al ejecutar la app aparece ese fondo gris con un loader en el centro. No muy me gusta. Se puede modificar esa carga por un splash personalizado?

  • @johnlaw3276
    @johnlaw3276 Год назад

    Thank you sir! may I know the way install the Flet app on iPhone, macOS and Windows also? thanks!

  • @codemedio6418
    @codemedio6418 2 месяца назад

    This is Flet or Flutter app? Kind of deference's resources

  • @hanif40x
    @hanif40x Год назад

    hello! Is it necessary to update the files in the serious_python_apk folder to be able to create the application in the future?

  • @SepehrValirezaei
    @SepehrValirezaei Год назад

    Than u that was awsome !❤❤ ur not Iranian?

  • @rabeemohammed5351
    @rabeemohammed5351 Год назад

    How did you collect these files for the process of downloading new updates?

  • @phanstudio
    @phanstudio Год назад

    I'm stuck in the installing collected packages part. It hasn't moved past since yesterday, maybe it's because my project has multiple folders with different components all linked the main😅, any advise

  • @Diddmstjr
    @Diddmstjr Год назад

    Thank you for making video. I want to make apk file with getting status code from request module with flet. Can you tell me how to pakage module also?

  • @seedaanet
    @seedaanet 8 месяцев назад

    Hi there
    Thanks
    I have a question
    Can I build apk without downloading android stedio because my computer device not has enough resources

    • @MrDjango1998
      @MrDjango1998  8 месяцев назад

      You need Android Studio for Android SDK

    • @seedaanet
      @seedaanet 8 месяцев назад

      @MrDjango1998 I DOWNLOADED ANDROID SDK WITHOUT DOWNLOADING ANDROID STEDIO FROM FLET WEBSITE AND DOWNLOADED GRADEL FROM ITS WEBSITE AND ALSO DOWNLOADED JAVA THEN MY PROCESS WAS END SUCCESSFULLY

  • @bridgeon7502
    @bridgeon7502 Год назад

    How do you resolve
    I/flutter ( 9806): Reconnect in 200 milliseconds
    I/flutter ( 9806): Connecting to Flet server flet.sock...
    I/flutter ( 9806): Connecting to Socket server flet.sock...
    I/flutter ( 9806): Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0
    It keeps on repeating that

    • @antalkormanyos8528
      @antalkormanyos8528 Год назад

      I had the same problem. I clicked on the Home icon in the emulator.
      I looked for the Flutter app and double-clicked on it. My application then ran perfectly.

  • @YevgenPHKryvtsov
    @YevgenPHKryvtsov 7 месяцев назад

    Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0
    I/flutter ( 9383): Reconnect in 200 milliseconds
    I/flutter ( 9383): Connecting to Flet server flet.sock...
    I/flutter ( 9383): Connecting to Socket server flet.sock...
    I/flutter ( 9383): Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0
    I/flutter ( 9383): Reconnect in 200 milliseconds
    I/flutter ( 9383): Connecting to Flet server flet.sock...
    I/flutter ( 9383): Connecting to Socket server flet.sock...
    I/flutter ( 9383): Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0
    I/flutter ( 9383): Reconnect in 200 milliseconds
    Any idea why is this happening?

  • @romchass
    @romchass Год назад

    Will it work without Android studio?

  • @arkebekiros355
    @arkebekiros355 Год назад +1

    you are amazing thankyou bro, i sub to you

  • @giratinum
    @giratinum Год назад

    You have done a wonderful job. The instructions are very easy and clear. But then there is a problem. What if I have multiple py module files, what if I want to use libraries, what if I want to rename the files, ...? Hopefully you will soon have a more detailed video tutorial.
    I tried changing the script inside main-py. It's very simple, no library than flet, it runs fine on pc but can't load on my samsung s10

  • @VladanLukovic011
    @VladanLukovic011 Год назад +1

    Great work and explanation! Thumbs up.
    The oher side is that I'm getting indefinite loop of Connecting to flet server flet.sock.... at the end of deploying on Nexus 6 virtual device in Android Studio. Any suggestions???
    I/flutter (11962): Connecting to Flet server flet.sock...
    I/flutter (11962): Connecting to Socket server flet.sock...
    I/flutter (11962): Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0
    I/flutter (11962): Reconnect in 200 milliseconds
    D/EGL_emulation(11962): app_time_stats: avg=112.52ms min=40.43ms max=172.63ms count=9
    I/flutter (11962): Connecting to Flet server flet.sock...
    I/flutter (11962): Connecting to Socket server flet.sock...
    I/flutter (11962): Error connecting to Flet server: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = flet.sock, port = 0
    I/flutter (11962): Reconnect in 200 milliseconds
    I/flutter (11962): Connecting to Flet server flet.sock...
    I/flutter (11962): Connecting to Socket server flet.sock...

  • @avtcanono
    @avtcanono 10 месяцев назад

    Hi! I appreciate your tutorial very much. Asking you for help. How to create an apk with remote database database? Thank you for your response.

  • @JenYehu
    @JenYehu Год назад

    is that the only way to make it apk?

  • @deepakpune1
    @deepakpune1 7 месяцев назад

    why dont you just use flet build apk command :)

  • @sweetfitfun8223
    @sweetfitfun8223 Год назад +1

    Sir please make complete python flet tutorial

  • @pythonantole9892
    @pythonantole9892 Год назад +1

    Waiting for the second part, running on an actual device.

  • @jcreyf5
    @jcreyf5 Год назад +1

    Exactly what I was looking for!
    Thanks!

    • @jcreyf5
      @jcreyf5 Год назад

      I'm able to build the APK and am able to copy it to my phone and install it fine. The app runs great.
      I don't understand though what the difference is between those 3 projects in your zip and why we have to copy files from 1 to 2 and then from 2 to 3 to get to an APK that works. I've tried skipping the copying and I end up with an APK that doesn't work (it shows the hourglass when loading on my phone but never shows the app's page).
      Guess I'll have to compare all 3 projects and try to find out what the differences are.

  • @fasilwandoor532
    @fasilwandoor532 Год назад +1

    Thank you somuch bro ❤❤❤

  • @johnstarfire
    @johnstarfire Год назад

    isn't much easier to use pygbag?

    • @bestquizMLBB
      @bestquizMLBB 7 месяцев назад

      What is that?

    • @johnstarfire
      @johnstarfire 7 месяцев назад

      @@bestquizMLBB it is a module to convert python files to apk

  • @kangsan2014
    @kangsan2014 5 месяцев назад

    Since it is made in China, I think I will not use it.

  • @Matheus-mr4tl
    @Matheus-mr4tl Год назад

    20gb? WTF IS THAT

  • @brianscalabrine1991
    @brianscalabrine1991 9 месяцев назад

    it says like this:
    Python executable found at C:\Users\arvij\AppData\Local\Temp\hostpython3.10\python\python.exe
    ERROR: Could not find a version that satisfies the requirement flet-embed==0.8.4 (from versions: 0.9.0, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.21.2, 0.22.0.dev2589, 0.22.0.dev2590, 0.22.0.dev2594, 0.22.0.dev2595, 0.22.0.dev2601, 0.22.0.dev2602, 0.22.0.dev2609, 0.22.0.dev2623, 0.22.0.dev2627, 0.22.0.dev2630, 0.22.0)
    ERROR: No matching distribution found for flet-embed==0.8.4
    what to do then? I need your help