How to make APK from Flet using Serious Python

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 69

  • @محمدالعوادي-س2ظ
    @محمدالعوادي-س2ظ 11 місяців тому +3

    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! ^_^

  • @amirazadehranjbar6844
    @amirazadehranjbar6844 9 місяців тому

    Exactly what I was looking for!
    Thanks!💯

  • @Eduardo-ex6fb
    @Eduardo-ex6fb Рік тому +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?

  • @rizkaaulia9399
    @rizkaaulia9399 10 місяців тому

    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

  • @CrazyFlyKite
    @CrazyFlyKite 9 місяців тому +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!

  • @becla-ing
    @becla-ing 8 місяців тому

    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 3 місяці тому

    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

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 3 місяці тому

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

  • @hanif40x
    @hanif40x 9 місяців тому

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

  • @eiji1136
    @eiji1136 5 місяців тому

    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."

  • @MottiBazar
    @MottiBazar 9 місяців тому

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

  • @odiio3402
    @odiio3402 2 місяці тому

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

  • @YevgenPHKryvtsov
    @YevgenPHKryvtsov 4 місяці тому +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 3 місяці тому

      same here. stuck at this line - how to proceed

  • @stephenwilkinson2228
    @stephenwilkinson2228 9 місяців тому +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 9 місяців тому

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

    • @stephenwilkinson2228
      @stephenwilkinson2228 9 місяців тому

      @@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 9 місяців тому

      @@stephenwilkinson2228 Still doesn't work :/

    • @stephenwilkinson2228
      @stephenwilkinson2228 9 місяців тому

      @@bridgeon7502 what error are you getting?

  • @rabeemohammed5351
    @rabeemohammed5351 9 місяців тому

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

  • @15shaikhshahid92
    @15shaikhshahid92 5 місяців тому +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

  • @akusins
    @akusins 9 місяців тому

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

  • @ProPython
    @ProPython 2 місяці тому

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

  • @goncaze
    @goncaze 11 місяців тому

    Great! When will the second video come?

  • @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  11 місяців тому

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

    • @Eduardo-ug9ui
      @Eduardo-ug9ui 11 місяців тому +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  11 місяців тому

      excelente@@Eduardo-ug9ui

    • @yucelbayraktar2847
      @yucelbayraktar2847 8 місяців тому

      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

  • @phanstudio
    @phanstudio 11 місяців тому

    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

  • @Eduardo-ug9ui
    @Eduardo-ug9ui 11 місяців тому

    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?

  • @mndtr0
    @mndtr0 5 місяців тому

    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...

  • @seedaanet
    @seedaanet 4 місяці тому

    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  4 місяці тому

      You need Android Studio for Android SDK

    • @seedaanet
      @seedaanet 4 місяці тому

      @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

  • @johnlaw3276
    @johnlaw3276 9 місяців тому

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

  • @bridgeon7502
    @bridgeon7502 9 місяців тому

    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 9 місяців тому

      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.

  • @khabbazz89
    @khabbazz89 2 місяці тому

    how do it without android studio ide
    ?

  • @SepehrValirezaei
    @SepehrValirezaei 11 місяців тому

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

  • @jcreyf5
    @jcreyf5 11 місяців тому +1

    Exactly what I was looking for!
    Thanks!

    • @jcreyf5
      @jcreyf5 11 місяців тому

      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.

  • @Diddmstjr
    @Diddmstjr 9 місяців тому

    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?

  • @arkebekiros355
    @arkebekiros355 Рік тому +1

    you are amazing thankyou bro, i sub to you

  • @YevgenPHKryvtsov
    @YevgenPHKryvtsov 4 місяці тому

    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?

  • @pythonantole9892
    @pythonantole9892 Рік тому +1

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

  • @giratinum
    @giratinum 10 місяців тому

    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

  • @romchass
    @romchass 11 місяців тому

    Will it work without Android studio?

  • @fasilwandoor532
    @fasilwandoor532 Рік тому +1

    Thank you somuch bro ❤❤❤

  • @JenYehu
    @JenYehu 10 місяців тому

    is that the only way to make it apk?

  • @deepakpune1
    @deepakpune1 3 місяці тому

    why dont you just use flet build apk command :)

  • @avtcanono
    @avtcanono 7 місяців тому

    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.

  • @sweetfitfun8223
    @sweetfitfun8223 Рік тому +1

    Sir please make complete python flet tutorial

  • @johnstarfire
    @johnstarfire 9 місяців тому

    isn't much easier to use pygbag?

    • @bestquizMLBB
      @bestquizMLBB 4 місяці тому

      What is that?

    • @johnstarfire
      @johnstarfire 4 місяці тому

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

  • @kangsan2014
    @kangsan2014 2 місяці тому

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

  • @Matheus-mr4tl
    @Matheus-mr4tl 8 місяців тому

    20gb? WTF IS THAT

  • @VladanLukovic011
    @VladanLukovic011 9 місяців тому +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...

  • @brianscalabrine1991
    @brianscalabrine1991 5 місяців тому

    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