▶️ 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
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.
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!
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.
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?
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
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
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.
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 ?
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.
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.
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?
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?
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
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!
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.
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?
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
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')]
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?
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!
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?
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'"
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.
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
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?
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?
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 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
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\
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
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'
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 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
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.
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'😪
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
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 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 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
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.
@@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.
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?
$ 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
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!!!
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
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.
▶️ 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
Thanks!
Thank you!
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.
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!
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.
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
You are a saint
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?
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
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)
@Максимов Александр Сергеевич nah I already tried but it's not working for a kivy file
Amazing sir was waiting for this
Enjoy
Thank you so much.
welcome!
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
Of course, you always have to install anything correctly.
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.
Thanks John I watched you a lot and your codes always work!
Glad to hear it!
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
Yeah, that's a problem without a very good solution...unfortunately.
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.
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 ?
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.
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.
To avoid the console window from showing up, try the "--windowed" switch
in which command should I add this?
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?
this is a the best video, it helped me much, thanks for sharing your knowledge.
greetings from Ecuador
Thanks! Glad you liked it!
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?
you can't...that's how all virus software handles all unknown softwares.
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
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!
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
did you ever find out what caused the error?
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.
use floats
A SMASH FOR YOU AND YOU ENERGYYYYYYY THANK YOUUUUU!!!!!! LiKE share hug and everythiiiing
Thanks!
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?
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
Sir I am getting
Failed to execute script error
?
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')]
@@malcolmnooning2505 I believe I have fixed it, review my previous comment if necessary
@@monterkills How did you fix it?
The title says "standalone" but this video shows "sit-inside-zip-with-hundreds-of-files".
LOL the zip file is a single file. Did you really not understand that?
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?
Does it seem to be? :-p
Congratulations 🎉🎈👏 40k Subs
Thank you so much 😀
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!
So you just put the path again? Or how did you do it?
Very nice Thank you john
welcome!
ModuleNotFoundError: No module named 'kivy_deps'
yea so that error happened
Do u find the soluation?
@@ghaithalshawabkeh5307 Did you try to run as administration?
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
@@paracetamol2020 didnt work. said they were already installed and tried in administrator
Is there any way to create an executable file for raspbian OS using Windows?
Probably but I don't know that
Do I really need to send all the files to the user? What are the really necessary folders to send? Thanks!
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?
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
@@amargluhic9026 I heard that too, but the sir said that was a complex thing. I may try though, thanks.
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?
Can you do this using colab
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'"
It creates almost a GB of file for a script that should be at least 50MB. Ho to select only the necessary files?
it gets error "failed to execute script due to unhandled exception:"NoneType" object has no attribute "size"""" how can i fix it?
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.
try updating to the latest version of python
@@Codemycom Ok sir. I will try and thanks for your reply.
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
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?
No but I bet Google can
@@Codemycom 🥲
Вот спасибо! Помог!
How can we make app for other OS? Thank you.
Other os you mean android and ios
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?
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.
@@Codemycom thank you master! that explains :)
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 ?
All antivirus flags all exe files that aren't registered with them...no matter what you used to build it.
@@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
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?
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
How to add two images in specs file which is used in layout
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\
Instead of sld2, put sdl2
The kivy_deps not found on macos
9:18 im getting an error as No module named 'kivy_deps'
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
very helpful, the documentation for this is kinda confusing
It really is
Can someone help my dist file is empty
Would it crash if I placed it on the D: directory? 🤔
Only one way to find out...
How do I do the same thing on Linux and run the application on Windows?
Try wine I guess? (Not the drink the Linux program btw)
my pathex is empty
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'
Thank you very much !!please show us How to make an APK with py library such apyrebase ?
How can we change the icon? , thank you
Use the --icon flag after -w and then type the path to your icon file which has to be .ico or .icns
@@MagicByIzzy ohh thanks
@@hiwab41 np happy to help
Sir can you make a video on navigation bar
Sure
Sir how to make countdown timer for quiz using kivy..??
Check the playlist, I have a video on timers
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
likely a typo in the command you typed
@@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
Does anybody have a solution for Windows Defender raising Trojan:Win32/Sabsik.TE.A!ml on exe files from pyinstaller?
Why does my exe file in cmd
and what about linux 😥😥 ???
How Can I do that for Ubuntu ?
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.
sorry I don't use conda
Try using native python..
walter white teaching coding
ha
how to make a apk of this same?
I get a permission error how do i handle this?
I get the same error😪 , did you find the problem?
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'😪
Did anyone receive this error: File "calculator.spec", line 35
a.binaries,
^
SyntaxError: invalid syntax.
John can you help me wit dis :S
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.
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.
@@mileskdg I did not know that. Thanks lumur. You are my hero.
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
Sir , why my dist folder is emty
No clue...did you do something differently?
mine is too, but you have another dist folder inside calc folder
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)
No. You didn't lose it...it's still in the original place on your computer.
@@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... :-)
@@pverprogramz641 No, sorry. Check your computer trash bin/ Recycle Bin. If you're using Windows, it should be there.
I perfectly followed the steps, my app is still crashing... :(
Then no, you absolutely did not perfectly follow the steps…
@@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
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.
@@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.
@@Codemycom No no, I just strictly followed all your steps from the beginning and it's don't work. That's all :-)
This worked
Please help me do this using linux .
Cool. 'Course it does nothing for me since I'm on Linux. But very interesting regardless.
yep
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?
$ 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
u might have not changed the directory in the terminal
Can I run this exe file on Android?
No, the process is different for Android
@@Codemycom will you make a video on that please....?
@@learnwithnawf246 someday
@@Codemycom hope you'll make it ☺️☺️
guys, guys this guy is a Pro!!!!!
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!!!
ha!
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
_Programação?
this is not working
what did you do differently from the video?
i made it for android easily u can contact me i try over 20 time but after that i do it success fully
Hey can u please tell me how to convert it into android app
hi
hi
Exe stand alone. auto-py-exe
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.
i have the same problème...
What if I am uaing sqlite database, how can I include that in?
Hey, how to include a json in spec file?
How to do this when kv file contain kivyMD items??
any updates to this?
didnt work
I got exception : maximum recursion depth exceeded while calling a python project, what's the solution for this?
Have you find the solution.?