Standalone Python EXE Executable - Python Kivy GUI Tutorial #20

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

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

  • @Codemycom
    @Codemycom  4 года назад +4

    ▶️ Watch Entire Kivy Playlist ✅ Subscribe To My RUclips Channel:
    bit.ly/37LrJ27 bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
    ▶️ Get The Code
    bit.ly/3qFVmJ9

  • @Walter-mr5hd
    @Walter-mr5hd 3 года назад

    Thanks!

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

    I used auto-py-to-exe for creating a simple exe file. At first I had to paste the .kv file content as a string right into the .py file. Then I didn't have to write any additional things into the specs etc. Actually, I created it as an One File, Window Based file so no additional folders or files were created anyway. It worked fine right at the first attempt. Then I made a few more attempts with having the separate .kv file and I tried to add it to the rest during the auto-py-to-exe process, similarly like I used to do when I was creating exe files from my customtkinter files. It didn't work. No problem though. The first method is easy and I think it's better. You have just one exe file and nothing else to mess with.

    • @marie-pierneault1035
      @marie-pierneault1035 10 месяцев назад +1

      Thanks for the tipp, I'm on this video since two days and it keeps telling me that my .kv is not found. Just drop it as a string and it works at first place!

  • @Albrazi
    @Albrazi 2 года назад +4

    not sure if he made another video on this but an easier way is using "auto-py-to-exe". You could select the py file and then add any additional files with it. No need to code anything.

    • @colecates5554
      @colecates5554 Год назад +4

      This doesn't work with the kv file for me. I add the kv file but I get a crash when I try to run the exe

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

      You are a saint

  • @jannesbecker8372
    @jannesbecker8372 3 года назад +8

    Me also gets this failed to execute script error. I tried ALL of the things already mentioned but it did NOT
    work. Do you think I must try the GitBash terminal?

    • @ij1316
      @ij1316 3 года назад

      You probably have an error. Remove the -w flag and run the exe so that you can see what's happening in the console window

  • @huguesrubin5804
    @huguesrubin5804 3 года назад +7

    Hi! How can we manage to have a single executable file with all the dependencies in it instead of a directory ?(equivalent to the --onefile command)

    • @huguesrubin5804
      @huguesrubin5804 3 года назад

      @Максимов Александр Сергеевич nah I already tried but it's not working for a kivy file

  • @dheerajd9965
    @dheerajd9965 4 года назад +2

    Amazing sir was waiting for this

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

    Thank you so much.

  • @jaffedenaegel6430
    @jaffedenaegel6430 3 года назад +3

    I have found you need to have kivy installed properly, if you just imported it from python without doing anything in the command prompt it will not work (at least not for me, follow the first tutorial in the kivy series here), also, the python used in your command prompt can be different then the one in the python file itself, make sure its 3.9 or less, 3.10 currently doesn't work
    after 2 hours of fixing all the stuff and reinstalling python so i only have 3.9 on my computer since i cant find how to switch between versions on the internet it worked

    • @Codemycom
      @Codemycom  3 года назад

      Of course, you always have to install anything correctly.

  • @woetotheconquered3451
    @woetotheconquered3451 2 года назад +1

    In case anyone needs it: I was having trouble with my file working, I changed "C:\\" for "..\\" on the path and it worked for me.

  • @trescientos4301
    @trescientos4301 3 года назад

    Thanks John I watched you a lot and your codes always work!

  • @andreabacoful
    @andreabacoful 4 года назад +3

    Fantastic and precise as always. One question: don't you ever have problems sharing the created .exe file due to the fact that most antivirus engines recognize it as malware? I have this problem with an app developed with tkinter. I have seen that it is a widespread problem

    • @Codemycom
      @Codemycom  4 года назад +4

      Yeah, that's a problem without a very good solution...unfortunately.

    • @__lasevix_
      @__lasevix_ 2 года назад +2

      you'd have to sign the file and get it into the official database for "safe files" of a few antivirus providers. otherwise, they'll check and see that the app isn't present on their list.

  • @erickedgardolandaverdealas2288
    @erickedgardolandaverdealas2288 3 года назад +3

    Good video this calculator works perfectly in my laptop and I want to take advantage of the oportunity to tell you that I tried to send the calculator.exe to some guys but the app just work with people who have python in their computers, otherwise the SO sent a fatal Error. In this case if I want to create a desktop apps with kivy, should I add the interpreter of python inside the calc directories in order people install python before executing the calc.exe, or What should I do instead ?

    • @__lasevix_
      @__lasevix_ 2 года назад +1

      most big applications written in python have their own version of it installed along their dependencies, I'm afraid you'll have to dig through the python docs about that. though I'd be interested if someone finds a way to circumvent this.

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

    Thank you. I repeated tutorial actions and got in in folder: C:\kivygui\calc\dist\calc only one exe file 'calc.exe' and a subfolder named ''_internal". Trying to run calc.exe I got error of lacking calc.kv.
    I copied calc.kv next to calc.exe and app runs as it should be.

  • @jeffdn1
    @jeffdn1 2 года назад +2

    To avoid the console window from showing up, try the "--windowed" switch

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

      in which command should I add this?

  • @NishanthAmbati
    @NishanthAmbati 2 года назад +2

    Hey John,
    your videos are really amazing. You are a great teacher. I've been following your playlist on python gui tutorial and really understanding how things work. I use linux operating system (ubuntu) and im not able to create a standalone python executable file for linux. Can you please help me with it?

  • @alericktravel
    @alericktravel 3 года назад +1

    this is a the best video, it helped me much, thanks for sharing your knowledge.
    greetings from Ecuador

    • @Codemycom
      @Codemycom  3 года назад

      Thanks! Glad you liked it!

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

    Dear John, perfect series!! But when i use pyinsyaller calc.spec -y i get an Error saying it may contain virusses or unwanted software. How to tackle this?

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

      you can't...that's how all virus software handles all unknown softwares.

  • @kemar3789
    @kemar3789 2 года назад +1

    Good day I'm having a problem when converting and editing the spec sheet specifically because I don't have a separate kv file. I have the in line build.load string so how would I go about converting that to a exe

  • @maksimkobylyuk7994
    @maksimkobylyuk7994 3 года назад +2

    I got this weird error, I followed this video step by step but still came out bad. Any Ideas?
    Unhandled exception in script
    Failed to execute script 'main' due to unhandled exception:
    'NoneType' object has no attribute 'size'
    Failed to obtain/convert traceback!

    • @otaviogabrielrochaecheverr5845
      @otaviogabrielrochaecheverr5845 3 года назад

      i've got the same here:
      'NoneType' object has no attribute 'size'
      Failed to obtain/convert traceback!
      And i have no clue to solve it LOL

    • @Agate.
      @Agate. 2 года назад

      did you ever find out what caused the error?

  • @STARBASS-Thema
    @STARBASS-Thema 4 месяца назад

    I have seen that you can't multiply two numbers like 3.5×4.4 or something like that can you please fix it or have I done a mistake in my code I don't know. The same by division two numbers like 8.1/5.3 doesn't work.

  • @solnik6236
    @solnik6236 2 года назад

    A SMASH FOR YOU AND YOU ENERGYYYYYYY THANK YOUUUUU!!!!!! LiKE share hug and everythiiiing

  • @sachinsinghal13
    @sachinsinghal13 3 года назад +6

    Hey John,
    Great amazing and helpful video so far thoughmy exe variable is different to your exe variable and I don't have a coll variable, instead I have a variable called app.
    exe = EXE(pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    [],
    name='simple_calc',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False )
    app = BUNDLE(exe,
    name='simple_calc.app',
    icon=None,
    bundle_identifier=None)
    How do I progress from here sir?

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

    I made an application and in windows it worked to create the executable, but in linux it gave an error in the kivy_deps sdl2 module, glew says that they do not exist

  • @cwtiwari9242
    @cwtiwari9242 4 года назад +4

    Sir I am getting
    Failed to execute script error
    ?

    • @malcolmnooning2505
      @malcolmnooning2505 4 года назад +1

      I was having that problem, too. I think I have the solution but I am not sure why it is the solution.
      BTW: I was first getting the problem using the Windows command prompt, not Mingw. Python 3.8.6. with kivy version 2.0.0rc4. Up to now, everything worked perfectly in the Windows Command Prompt.
      I then switched to Mingw. Same problem.
      After some experimentation, I found that changing the calc.spec file worked in both Mingw and the Windows command prompt.
      In the spec file, change 'Code\calc.kv', to just 'calc.kv', as shown below.
      a.datas += [('Code\calc.kv',
      'C:\\kivygui',
      'DATA')]
      a.datas += [('calc.kv',
      'C:\\kivygui',
      'DATA')]

    • @monterkills
      @monterkills 4 года назад

      @@malcolmnooning2505 I believe I have fixed it, review my previous comment if necessary

    • @ki6fzb
      @ki6fzb 3 года назад

      @@monterkills How did you fix it?

  • @abdulbasitb8151
    @abdulbasitb8151 3 года назад +3

    The title says "standalone" but this video shows "sit-inside-zip-with-hundreds-of-files".

    • @Codemycom
      @Codemycom  3 года назад +2

      LOL the zip file is a single file. Did you really not understand that?

  • @johnanderson3652
    @johnanderson3652 4 года назад +1

    The documentation for pyinstaller says that command line options should appear before the spec file. Like `pyinstaller -y calc.spec` rather than `pyinstaller calc.spec -y`. Is that a problem?

    • @Codemycom
      @Codemycom  4 года назад +1

      Does it seem to be? :-p

  • @faizrehman9773
    @faizrehman9773 4 года назад +1

    Congratulations 🎉🎈👏 40k Subs

    • @Codemycom
      @Codemycom  4 года назад +1

      Thank you so much 😀

  • @nocopyrightgameplaystockvi231
    @nocopyrightgameplaystockvi231 3 года назад +1

    OK, it worked for me! But still, the part where a.data+=[(Code\calc.kv)].............., from where does this Code\calc.kv file comes from? I did the same with my setup (D:\export\TheLab.kv) and it worked. But don't know how!

    • @diegomendez8534
      @diegomendez8534 2 года назад

      So you just put the path again? Or how did you do it?

  • @yossepbinyoum2181
    @yossepbinyoum2181 2 года назад

    Very nice Thank you john

  • @aking9077
    @aking9077 3 года назад +5

    ModuleNotFoundError: No module named 'kivy_deps'
    yea so that error happened

    • @ghaithalshawabkeh5307
      @ghaithalshawabkeh5307 3 года назад

      Do u find the soluation?

    • @o.koldemir9457
      @o.koldemir9457 3 года назад

      @@ghaithalshawabkeh5307 Did you try to run as administration?

    • @paracetamol2020
      @paracetamol2020 3 года назад +1

      i guess never is too late to help someone, try "python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew" in cmd and retry

    • @shadocodes5040
      @shadocodes5040 3 года назад

      @@paracetamol2020 didnt work. said they were already installed and tried in administrator

  • @hamzahassan6364
    @hamzahassan6364 3 года назад +1

    Is there any way to create an executable file for raspbian OS using Windows?

    • @Codemycom
      @Codemycom  3 года назад

      Probably but I don't know that

  • @teslamodel314
    @teslamodel314 4 года назад +1

    Do I really need to send all the files to the user? What are the really necessary folders to send? Thanks!

    • @teslamodel314
      @teslamodel314 4 года назад

      I notice there is the source python file inside. Is it necessary to be there? What if I don't want to share the source code?

    • @amargluhic9026
      @amargluhic9026 3 года назад

      when you are converting it to an exe, add --onefile and you'll have a single python file in dist folder i think, correct me if im wrong

    • @teslamodel314
      @teslamodel314 3 года назад

      @@amargluhic9026 I heard that too, but the sir said that was a complex thing. I may try though, thanks.

  • @ramankr0022
    @ramankr0022 3 года назад

    i have only 1 main.py file and i have integreted the kv file inside the main.py file plus i have two images in same directory/assets/images. do i need to add anything in the.spec file?

  • @priyamtiwari4805
    @priyamtiwari4805 4 года назад +2

    Can you do this using colab

  • @adamfatyga7977
    @adamfatyga7977 2 года назад

    Im try to make speedtest internet. I do everything from that video, but when i run .exe file i have an error " File "main.py", line 1, in
    import speedtest
    ModuleNotFoundError: No module named 'speedtest'"

  • @teslamodel314
    @teslamodel314 3 года назад

    It creates almost a GB of file for a script that should be at least 50MB. Ho to select only the necessary files?

  • @NasrinAkter-kf5ne
    @NasrinAkter-kf5ne 3 года назад

    it gets error "failed to execute script due to unhandled exception:"NoneType" object has no attribute "size"""" how can i fix it?

  • @tahmidmahmud5013
    @tahmidmahmud5013 4 года назад +1

    Hello sir, I have tried to make this same exe but it shows me an AttributeError: "Nonetype object has no attribute size".
    I am currently using python 3.7.3 version.
    Please help me about my problem.

    • @Codemycom
      @Codemycom  4 года назад +2

      try updating to the latest version of python

    • @tahmidmahmud5013
      @tahmidmahmud5013 4 года назад +1

      @@Codemycom Ok sir. I will try and thanks for your reply.

  • @daggercentral9818
    @daggercentral9818 3 года назад

    pls suggest another way to do this because when the location of the folder is changed then it does not execute and give a fatal error, in simple words, it will not execute on my friend's computer

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

    I am facing this error after doing all the operations above: "failed to execute script due to unhandled exception: maximum recursion depth exceeded". Can you tell me any solution or why I am seeing this?

  • @НикР-ь5ч
    @НикР-ь5ч 4 года назад +2

    Вот спасибо! Помог!

  • @ЕвгенийМарков-б4у
    @ЕвгенийМарков-б4у 4 года назад +2

    How can we make app for other OS? Thank you.

    • @abduksam
      @abduksam 3 года назад +1

      Other os you mean android and ios

  • @taurohkea2169
    @taurohkea2169 3 года назад +1

    i did all of them but in the end it created a main file inside dist file. and there is a main.exe which is "Trojan:Win32/Wacatac.DC!ml" virus.
    how did i end up creating a virus?

    • @Codemycom
      @Codemycom  3 года назад +2

      You didn't. Antivirus usually flags software it doesn't recognize as potentially a virus. Since you just built it, it obviously wouldn't recognize it.

    • @taurohkea2169
      @taurohkea2169 3 года назад

      @@Codemycom thank you master! that explains :)

  • @tesuji2000
    @tesuji2000 4 года назад +1

    I got through the creation of calc.exe but when I tried to run it, Windows said it contained a serious virus Trojan:Win32/FuerboosDict severe Any ideas ?

    • @Codemycom
      @Codemycom  4 года назад

      All antivirus flags all exe files that aren't registered with them...no matter what you used to build it.

    • @tesuji2000
      @tesuji2000 4 года назад +1

      @@Codemycom Thanks i solved the problem by reinstalling everything --- works just fine now. Appreciate your rapid reply. I really like kivy --- thanks for your great tutorials --- heading into Tut. #22

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

    hey I have a {module 'PyInstaller.depend.bindepend' has no attribute 'selectImports'} error. I can't solved it. someone know how can I fix it?

  • @MST-ul7ol
    @MST-ul7ol 2 года назад

    Can somebody help me? After everything when I click on the application file, cmd opens and then closes. The py file is running fine in the IDE

  • @tech_developers885
    @tech_developers885 3 года назад

    How to add two images in specs file which is used in layout

  • @afghanistaninternational9282
    @afghanistaninternational9282 3 года назад

    sir i got an error could you please help me?
    File "calc.spec", line 1, in
    from kivy_deps import sld2, glew
    ImportError: cannot import name 'sld2' from 'kivy_deps' (c:\users\

  • @ankitghosh8256
    @ankitghosh8256 3 года назад

    The kivy_deps not found on macos

  • @ramankr0022
    @ramankr0022 3 года назад

    9:18 im getting an error as No module named 'kivy_deps'

    • @DarkPlayerPL
      @DarkPlayerPL 2 года назад

      idk that it wil lhelp u, but in my case instead of sdl2 i typed sd12 and i was totally sure that it is correct, this 'l' looking like 1 in his terminal lol, anyway great tutorial love it

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

    very helpful, the documentation for this is kinda confusing

  • @mileskdg
    @mileskdg 4 года назад +1

    Can someone help my dist file is empty

  • @andres154525452
    @andres154525452 3 года назад

    Would it crash if I placed it on the D: directory? 🤔

    • @Codemycom
      @Codemycom  3 года назад +1

      Only one way to find out...

  • @codelery414
    @codelery414 3 года назад

    How do I do the same thing on Linux and run the application on Windows?

    • @trol5215
      @trol5215 3 года назад

      Try wine I guess? (Not the drink the Linux program btw)

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

    my pathex is empty

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

    It doesnt work on me any solutions? Error is:
    Traceback (most recent call last):
    File "logging\__init__.py", line 1113, in emit
    AttributeError: 'NoneType' object has no attribute 'write'

  • @kebabsharif9627
    @kebabsharif9627 3 года назад

    Thank you very much !!please show us How to make an APK with py library such apyrebase ?

  • @hiwab41
    @hiwab41 4 года назад +1

    How can we change the icon? , thank you

    • @MagicByIzzy
      @MagicByIzzy 4 года назад +2

      Use the --icon flag after -w and then type the path to your icon file which has to be .ico or .icns

    • @hiwab41
      @hiwab41 4 года назад +1

      @@MagicByIzzy ohh thanks

    • @MagicByIzzy
      @MagicByIzzy 4 года назад

      @@hiwab41 np happy to help

  • @dheerajd9965
    @dheerajd9965 4 года назад

    Sir can you make a video on navigation bar

  • @ameykulkarni2277
    @ameykulkarni2277 2 года назад

    Sir how to make countdown timer for quiz using kivy..??

    • @Codemycom
      @Codemycom  2 года назад

      Check the playlist, I have a video on timers

  • @BehruzbekOtayev
    @BehruzbekOtayev 3 года назад

    pyinstaller calc.spec -y command gives me the following error:
    110 INFO: PyInstaller: 4.2
    110 INFO: Python: 3.8.7
    111 INFO: Platform: Windows-10-10.0.19041-SP0
    116 INFO: UPX is not available.
    script '-' not found

    • @Codemycom
      @Codemycom  3 года назад +1

      likely a typo in the command you typed

    • @BehruzbekOtayev
      @BehruzbekOtayev 3 года назад

      @@Codemycom thanks for the reply. Turned out i didn't save the calc.spec file after editing it. Tried it several times, still didnt work out. Will try tomorrow. Thank you. You're awesome

  • @99skorpion
    @99skorpion 3 года назад

    Does anybody have a solution for Windows Defender raising Trojan:Win32/Sabsik.TE.A!ml on exe files from pyinstaller?

  • @tahmidhassanbarbhuiya
    @tahmidhassanbarbhuiya 3 года назад

    Why does my exe file in cmd

  • @prajwalpant
    @prajwalpant 3 года назад

    and what about linux 😥😥 ???

  • @epolanco11
    @epolanco11 2 года назад

    How Can I do that for Ubuntu ?

  • @pavlintsonev2718
    @pavlintsonev2718 3 года назад

    I am using conda and when I try to update spec file return me this error "ModuleNotFoundError: No module named 'kivy_deps'" does anybody can help me with this issue.

    • @Codemycom
      @Codemycom  3 года назад

      sorry I don't use conda

    • @VK-me8zu
      @VK-me8zu 3 года назад

      Try using native python..

  • @StereoWorld
    @StereoWorld 3 года назад +1

    walter white teaching coding

  • @Sanatjha4
    @Sanatjha4 3 года назад

    how to make a apk of this same?

  • @akarshgupta2586
    @akarshgupta2586 3 года назад

    I get a permission error how do i handle this?

    • @marie-pierneault1035
      @marie-pierneault1035 10 месяцев назад

      I get the same error😪 , did you find the problem?

    • @marie-pierneault1035
      @marie-pierneault1035 10 месяцев назад

      Oh! I fount out that the .exe file was open. That's why it couldn't overwrite it. Now I have this issue😅: Traceback (most recent call last):
      File "main.py", line 13, in
      Builder.load_file("calc.kv")
      File "kivy\lang\builder.py", line 308, in load_file
      FileNotFoundError: [Errno 2] No such file or directory: 'calc.kv'😪

  • @storageaccountiii8917
    @storageaccountiii8917 4 года назад

    Did anyone receive this error: File "calculator.spec", line 35
    a.binaries,
    ^
    SyntaxError: invalid syntax.
    John can you help me wit dis :S

    • @storageaccountiii8917
      @storageaccountiii8917 4 года назад

      I was using pycharm as always. Kivy module is installed within Pycharm but I had to download it from pycharm local terminal. Now it works.

    • @mileskdg
      @mileskdg 4 года назад +1

      Yes if your using your c directory like this 'C:\User...' then you need to the letter 'r' before adding the url like this: r'C:\User...' and so forth.

    • @storageaccountiii8917
      @storageaccountiii8917 4 года назад

      @@mileskdg I did not know that. Thanks lumur. You are my hero.

  • @andres154525452
    @andres154525452 3 года назад +2

    Though that you over explained the simple stuff and missed out to explain the complicated ones, like the doble \\, what were those files you imported.... But it was ok nonetheless

  • @lasindukashmira7272
    @lasindukashmira7272 4 года назад

    Sir , why my dist folder is emty

    • @Codemycom
      @Codemycom  4 года назад

      No clue...did you do something differently?

    • @deki90to
      @deki90to 4 года назад

      mine is too, but you have another dist folder inside calc folder

  • @pverprogramz641
    @pverprogramz641 3 года назад

    Hi John !! I have converted my python file into exe... I lost my py file but I have the exe, is there a way to convert it back to py file ?? 🤔
    (Not related to kivy)

    • @Codemycom
      @Codemycom  3 года назад

      No. You didn't lose it...it's still in the original place on your computer.

    • @pverprogramz641
      @pverprogramz641 3 года назад

      @@Codemycom no, the conversion didnt affect the file... i deleted the py file by accident and i want to have it back.... if i could convert the exe to py it would be very helpful... :-)

    • @Codemycom
      @Codemycom  3 года назад

      @@pverprogramz641 No, sorry. Check your computer trash bin/ Recycle Bin. If you're using Windows, it should be there.

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

    I perfectly followed the steps, my app is still crashing... :(

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

      Then no, you absolutely did not perfectly follow the steps…

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

      @@Codemycom Unfortunately I did, I watched your video several times since more than 1 hour and it didn't works, your video is three years old, maybe it's obsolete, thanks anyway

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

      Everytime I launch my .exe file, I have a recursion error and the app is crashing :
      Traceback (most recent call last):
      File "logging\__init__.py", line 1113, in emit
      AttributeError: 'NoneType' object has no attribute 'write'
      My app works well when I execute it from Visual Studio Code or PyCharm.

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

      @@thecodeprovider no you didn’t. The video isn’t obsolete. This isn’t voodoo, it doesn’t work for some people and not for others. You.did.something.wrong.

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

      @@Codemycom No no, I just strictly followed all your steps from the beginning and it's don't work. That's all :-)

  • @KendaBeatMaker
    @KendaBeatMaker 2 года назад

    This worked

  • @prajwalpant
    @prajwalpant 3 года назад

    Please help me do this using linux .

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

    Cool. 'Course it does nothing for me since I'm on Linux. But very interesting regardless.

  • @AR-mk3ks
    @AR-mk3ks 4 года назад +1

    so when you will make apk app one android and one question I can make an app in kivy and upload on google play and get money if yes can you make a video?

  • @deki90to
    @deki90to 4 года назад

    $ pyinstaller calc.spec -y
    122 INFO: PyInstaller: 4.1
    122 INFO: Python: 3.7.6
    124 INFO: Platform: Windows-10-10.0.19041-SP0
    127 INFO: UPX is not available.
    spec "calc.spec" not found
    But there is calc.spec file, weird

    • @VK-me8zu
      @VK-me8zu 3 года назад

      u might have not changed the directory in the terminal

  • @learnwithnawf246
    @learnwithnawf246 3 года назад

    Can I run this exe file on Android?

    • @Codemycom
      @Codemycom  3 года назад +1

      No, the process is different for Android

    • @learnwithnawf246
      @learnwithnawf246 3 года назад +1

      @@Codemycom will you make a video on that please....?

    • @Codemycom
      @Codemycom  3 года назад +2

      @@learnwithnawf246 someday

    • @learnwithnawf246
      @learnwithnawf246 3 года назад +1

      @@Codemycom hope you'll make it ☺️☺️

  • @jubileem.sibandajubbs2175
    @jubileem.sibandajubbs2175 2 года назад

    guys, guys this guy is a Pro!!!!!

  • @paulushimawan5196
    @paulushimawan5196 2 года назад

    Spent almost 1 hour to find out what's going wrong, turns out that I wrote Tree as TREE..... Make sure you do everything carefully, otherwise it won't work at all. And don't give up!!!

  • @livioalvarenga9481
    @livioalvarenga9481 3 года назад

    Hello, Can you help me?
    File "codemy_12_Calculadora.spec", line 24
    a.datas += [('code'\codemy_12_Calculadora.kv, 'C:\\Users\\Avell\\OneDrive\\Cursos\\Biblioteca_Conhecimento\\_Programação_Biblioteca\\Python\\Kivy\\EXE_calculadora\codemy_12_Calculadora.kv', 'DATA')]
    ^
    SyntaxError: unexpected character after line continuation character

  • @tahmidhassanbarbhuiya
    @tahmidhassanbarbhuiya 3 года назад

    this is not working

    • @Codemycom
      @Codemycom  3 года назад +1

      what did you do differently from the video?

  • @EthioWonder
    @EthioWonder 3 года назад

    i made it for android easily u can contact me i try over 20 time but after that i do it success fully

    • @redwanrifat6084
      @redwanrifat6084 2 года назад

      Hey can u please tell me how to convert it into android app

  • @savithnishitha5562
    @savithnishitha5562 4 года назад

    hi

  • @chesslife2345
    @chesslife2345 2 года назад

    Exe stand alone. auto-py-exe

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

    Hi,
    I tried to create exe from my python kivy code and i can able to create exe with console(means console also opening parallely). So what i need is without console the exe should work. But when i try the command --noconsole or --w or --windowed these commands i am facing error. Please help me here.
    The below commands i tried,
    > pyinstaller --onefile --noconsole --add-data=SystemsEOL_.kv;. --add-data=EmersonAPI.py;. --add-data=hpxlogo.jpg;. --add-data=i_o.png;. --add-data=PV.jpg;. --add-data=run_test.jpg;. --add-data=units.csv;. Main.py
    then in Main.spec file added below things,
    from kivy_deps import sdl2, glew
    exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
    [],
    >pyinstaller --clean "Main.spec"
    But still facing the issue. I was trying this for long time unable to resolve till now please help.

  • @SanjayKumar_optimist
    @SanjayKumar_optimist 3 года назад +1

    What if I am uaing sqlite database, how can I include that in?

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

    Hey, how to include a json in spec file?

  • @amindusasanka952
    @amindusasanka952 3 года назад

    How to do this when kv file contain kivyMD items??

  • @Surzom
    @Surzom 2 года назад

    didnt work

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

    I got exception : maximum recursion depth exceeded while calling a python project, what's the solution for this?

    • @pro_fessor.
      @pro_fessor. Год назад

      Have you find the solution.?