I've noticed a lot of people ask very similar questions so decided to write a help post (linked in the UI). If you're having issues with your output executable, give my help post a read before commenting: nitratine.net/blog/post/issues-when-using-auto-py-to-exe/
Did you really make all of that just to make our lifes easier ? And you are also here in comment section, active, 2 years later and helping people out ? Instant subscribe. You are legend
Congratulations and thank you very much for your work. I was having some problems to create an executable that could make an gif file to work. I tried py2exe, CX_Freeze and pure pyinstaller. Somehow only your program was able to solve that issue. Again, thank you very much! You're the man!
@@PyTutorials Same here. Tried py2exe, cx_freeze and pyinstaller. Couldn't package txt files with pyinstaller. This is the only thing that worked. The only additional thing I was stuck on was how to read the packaged files in code. Check here: stackoverflow.com/questions/56818178/python-to-exe-for-python3-7/56818199?noredirect=1#comment100189731_56818199
@@PyTutorials I got this same error when trying to install the requirements.txt, The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Is your current working directory the same as the root of the repository that you downloaded/cloned? If you are, then requirements.txt will be in the working directory - you can see this by looking for requirements.txt when executing `dir` in cmd (or `ls` in a linux terminal).
Yes but you will need to modify the source and will then loose a bit of functionality. What's the difference between Firefox and chrome you desire? It is literally just app mode.
i'll just continue with chrome then lol. I really just prefer the look and feel of firefox. Plus Firefox is a little less information hungry, which i like.
You're right. Soon I might take a look at the project and look at my options for making other browsers compatible. Thanks for bringing this to my attention. Unfortunately I won't be able to get the re-sized window like in Chrome but supporting other browsers is a good idea.
drive.google.com/folderview?id=1h2QJCFsJyy1f6Lu3JAiuLENdui-4hvDG this is my project plz convert it to .exe and provide me a link to download plz plz plz plz plz plz plz plz plz plz PLZ
No. I do not want to seem rude but I do not package it for other people. I spent hours making this tool and give it away for free, you have my time. I can help with errors but you actually need to put some effort in.
1) Thank you for yout job, that is neat :) 2) The "Failed to execute script ***" issue : I've had it, and here is how I have solved it, for those you are in need. In my case it was linked to Tkinter, precisely to the fact that I have put an icon to the root window (like root.iconbitmap("path_to_the_icone.ico")). At first the path I had for the icon was relative ( the path was just "iconName.ico" because it was in the same folder as the python script), and it was causing the "Failed to execute script ***" issue. All I hav had to do to solve this is to put an absolute path instead of a relative one. So, more clearly, I went from : root.iconbitmap("iconeName.ico") => relative path => Failed to execute script *** to root.iconbitmap("C/user/[rest of the path]/iconeName.ico") => absolute path => no issue anymore. Also, in the absolute path, use / and not \ as it creates other issues. Thanks :)
os.path.join and other functions in os.path are a huge help with this. Also when using onefile mode, there is some extra wrapping steps outlined in the GUI when adding additional files.
Can anyone help? Error: tkinter not found For linux, you can install tkinter by executing: "sudo apt-get install python3-tk" (Im running on Windows 10)
I'm completely new to anything relating to programming, but I just made a simple tool that i want to convert into an exe. I followed the steps, but when i got to ' pip install -r requirements.txt ' it throws a million errors. ERROR: Command errored out with exit status 1: happened 4 times making an entire wall of red text Edit: wasn't window defender firewall or bitdefender. turned both off
Are you the one who made this program !!! It is a legendary program and I have been using it for a while, and thank you very much for this great service❤❤❤
I wouldnt use it cuz I forget shit easily if I dont do it very often. Anyways, mad respect to this man for his activity on the comments and all his videos helps more than the docs for newcomers xD
This doesnt work me, it says "PyInstaller not found" when I have it installed then it says use "python -m pip install PyInstaller" when I try that it says 'python' is not recognized as an interneral or external command
I thought you said you did install it? Why use "python -m pip install PyInstaller" then? At 0:23 I show you how to check if pip is setup and set it up if required (in the video linked) - using this method will also add the same path that PyInstaller is located under (after you install it)
File "E:\New folder\lib\dis.py", line 292, in _get_const_info argval = const_list[const_index] IndexError: tuple index out of range Project output will not be moved to output folder Complete. i am getting this error can someone tell me why and how to solve it
Hey man, this is a great tool, for some reason it's not working for me to run it (I have disabled all anti-viruses and firewalls), and it just opens it up but gets stuck on initializing.
There is a link that appears at the bottom of the UI after every build, is linked in the description of this video and is in the README file in the repository; did you read this? There are debugging steps in that post that talks about how to get the actual error (what you are saying here isn't an error).
@@PyTutorials All I know is that I spent hours and hours to read though all those error and solution to just create a working .exe, and I still haven't got it. Now I am stuck to FileNotFoundError, which I guess is because I didn't put "correct" file path that pyinstaller want. I just want it to target a file in the same dir, I have tried .[filename], /[filename], [filename] and it all doesn't work. you know generating a .exe in Java/c++/basic IDE is not even a thing, just a 2 click process. Why in hell python make it so difficult?
Are you using onefile? In the UI there is a link that appears that tells you to reference files in a particular way (stackoverflow.com/questions/7674790/bundling-data-files-with-pyinstaller-onefile/13790741#13790741)
Thanks for the great video but I cant get it to run. I could open Auto exe py but could not exe a py file. Error code: File "C:\Users\micha\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error raise error(exception.winerror, exception.function, exception.strerror) win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system') Not to sure what I did wrong but im still new to coding and would love this to work. Any feed BAck would be great :) Still liked cause looks like an amazing program.
There is a help post linked in the ui, description of this video, the readme of the repo and is in the pinned comment; did you read this? I talk about this under the heading "LoadLibraryEx / The file cannot be accessed by the system" nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#loadlibraryex-the-file-cannot-be-accessed-by-the-system
can we just use: pip install auto-py-to-exe? and BTW, I transferred my .py file to .exe file. But when I tried to run it on a pc without having python *at all* there was an error that say, that I missing some python 37 file in my AppData. Do you know how to fix it?
Yes, in the description I encourage you to use `pip install auto-py-to-exe` and in the repo it also encourages you to use `pip install auto-py-to-exe`. When you packaged the executable, I'm going to guess (you need to verify this) that the executable also had a lot of other files around it - this executable would have been in a folder located in the output folder. If this is true, did you just copy the .exe? You can't do that, you need the whole folder, that is the whole point of the other files there. I recommend trying to run it on your machine first. If you move it to a different folder, does it still work? If you use the same method, and my assumptions of what occurred is correct, it will not run because you have not brought all the required resources with it.
@@PyTutorials Do you mean that I should transfer the _pycache_, build, my original py file and the .spec file to the second PC? (my dist contain only the .exe) If the answer is true, there is a way to combine EVERYTHING into 1 file? Thanks a lot!
No, you do not need the __pycache__ folder or the .spec file. Inside the output folder, there should be another folder that contains you exe; you need to move that whole folder (by zip if you want) as the exe needs ALL of those files in the folder by it. Look at the buttons I hit at 1:46 => "Select if you want the output to be one file or one folder."
@@PyTutorials Once again thanks for the respond. I did choose the option of one file and the output was only one exe file, that was the file I transferred. I'm trying to upgrade my auto py to EXE and Export and transfer again and I'll see what will happen. I hope that it will solve the problem. if not I don't know what to do.
You don't need to send me the code. Did you read my post on common issues with this tool - it appears clearly at the bottom of the ui after every build and is in the description of this video. Following the debugging steps in the post, what is the error you are getting?
Is your current working directory the same as the root of the repository that you downloaded/cloned? If you are, then requirements.txt will be in the working directory - you can see this by looking for requirements.txt when executing `dir` in cmd (or `ls` in a linux terminal).
\auto-py-to-exe-master>py run.py Traceback (most recent call last): File "C:\Users\teema\auto-py-to-exe-master un.py", line 6, in from auto_py_to_exe import __main__ as apte File "C:\Users\teema\auto-py-to-exe-master\auto_py_to_exe\__main__.py", line 10, in from . import ui File "C:\Users\teema\auto-py-to-exe-master\auto_py_to_exe\ui.py", line 5, in import eel ModuleNotFoundError: No module named 'eel' What can i do?
Are you sure that you install the requirements in the same distribution of Python that you are using to execute run.py? If you execute `py -m pip list`, are all the dependencies within requirements.txt on the list?
Check out the Windows specific options offered by PyInstaller (which are in this tool) - pyinstaller.readthedocs.io/en/stable/usage.html#windows-specific-options
Sir, I have pip installed a few libraries. I use these libraries in my program. When i convert to .exe, will a person without python and the installed libraries be able to run the program without any errors?
Yes, regarding all the libraries are added when packaging. Sometimes this does not happen automatically but there are instructions on how to figure out what to do in the links in the UI.
No, you do not have to; the tool will find the libraries most of the time. If it does not happen or something is wrong with the exe, you need to read the help post. Also, from this videos description (and the repo): "Python 3.8 is not yet supported and Python 2.7 support has been dropped"
@PyTutorials, thanks for responding so early! Okay, I tried it again, and this time, it successfully moved the project to a folder. But, when I open the EXE file, it opens, and after about fifteen seconds, it crashes. Please look in to it. Thanks. 😃
I wonder if billions of coders need py-to-exe- converter why python creators didn't add any default converter for many many years. I refuse to understand that.
I am getting the following error: OSError: [WinError 1920] The file cannot be accessed by the system During handling of the above exception, another exception occurred: ... win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system') Project output will not be moved to output folder
I followed all of the steps, whenever I run it I'm getting (1920,LoadLibraryEx,the file cannot be accessed by the system) error. I tried running as administrator, downgrading to python 3.7, uninstalling and reinstalling python. None of that works. Please help me fix this.
@@PyTutorials This is the output: Running auto-py-to-exe v2.7.5 Building directory: C:\Users\user\AppData\Local\Temp\tmpli14o19p Provided command: pyinstaller --noconfirm --onefile --console "C:/Users/user/.PyCharmCE2018.2/config/scratches/keyLogger.py" Recursion Limit is set to 5000 Executing: pyinstaller --noconfirm --onefile --console C:/Users/user/.PyCharmCE2018.2/config/scratches/keyLogger.py --distpath C:\Users\user\AppData\Local\Temp\tmpli14o19p\application --workpath C:\Users\user\AppData\Local\Temp\tmpli14o19p\build --specpath C:\Users\user\AppData\Local\Temp\tmpli14o19p 41414 INFO: PyInstaller: 3.6 41414 INFO: Python: 3.7.8 41422 INFO: Platform: Windows-10-10.0.18362-SP0 41430 INFO: wrote C:\Users\user\AppData\Local\Temp\tmpli14o19p\keyLogger.spec 41438 INFO: UPX is not available. 41446 INFO: Extending PYTHONPATH with paths ['C:\\Users\\user\\.PyCharmCE2018.2\\config\\scratches', 'C:\\Users\\user\\AppData\\Local\\Temp\\tmpli14o19p'] 41462 INFO: checking Analysis 41462 INFO: Building Analysis because Analysis-00.toc is non existent 41478 INFO: Initializing module dependency graph... 41486 INFO: Caching module graph hooks... 41510 INFO: Analyzing base_library.zip ... 44904 INFO: Processing pre-find module path hook distutils 44912 INFO: distutils: retargeting to non-venv dir 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2288.0_x64__qbz5n2kfra8p0\\lib' 46832 INFO: Caching module dependency graph... 47024 INFO: running Analysis Analysis-00.toc An error occurred while packaging Traceback (most recent call last): File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error yield File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx return _dll._LoadLibraryEx(fileName, 0, flags) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi\_dll.py", line 26, in _LoadLibraryEx function_name='LoadLibraryEx') File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi\_util.py", line 81, in __call__ self._raise_error(function_name) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi\_util.py", line 92, in _raise_error raise exception OSError: [WinError 1920] The file cannot be accessed by the system During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\user\Desktop\auto-py-to-exe-master\auto_py_to_exe\packaging.py", line 131, in package run_pyinstaller() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 734, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 681, in build exec(code, spec_namespace) File "C:\Users\user\AppData\Local\Temp\tmpli14o19p\keyLogger.spec", line 17, in noarchive=False) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 244, in __init__ self.__postinit__() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__ self.assemble() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 395, in assemble redirects=self.binding_redirects)[1:]) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 228, in Dependencies for ftocnm, fn in getAssemblyFiles(pth, manifest, redirects): File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 404, in getAssemblyFiles for assembly in getAssemblies(pth): File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 355, in getAssemblies res = GetManifestResources(pth) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\utils\win32\winmanifest.py", line 1007, in GetManifestResources return winresource.GetResources(filename, [RT_MANIFEST], names, languages) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\utils\win32\winresource.py", line 170, in GetResources hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx return _dll._LoadLibraryEx(fileName, 0, flags) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2288.0_x64__qbz5n2kfra8p0\lib\__contextlib.py__", line 130, in __exit__ self.gen.throw(type, value, traceback) File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error raise error(exception.winerror, exception.function, exception.strerror) win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system') Project output will not be moved to output folder Complete.
If running it with admin permissions has not worked, you might have an issue with your permission setup. Running this tool with elevated permissions in this situation has always solved it for me.
Is your current working directory the same as the root of the repository that you downloaded/cloned? If you are, then requirements.txt will be in the working directory - you can see this by looking for requirements.txt when executing `dir` in cmd (or `ls` in a linux terminal).
Did you read the post I linked in the description? I talk about this issue here: nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#my-antivirus-detected-the-exe-as-a-virus
I've noticed a lot of people ask very similar questions so decided to write a help post (linked in the UI).
If you're having issues with your output executable, give my help post a read before commenting: nitratine.net/blog/post/issues-when-using-auto-py-to-exe/
ok
pip' is not recognized as an internal or external command,
operable program or batch file. this is cmd error code. what i do
?
@@spookytenti4735 Did you follow the video I talked about when testing if pip works or not?
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Is your working directory the same directory as the root of the project?
Did you really make all of that just to make our lifes easier ? And you are also here in comment section, active, 2 years later and helping people out ? Instant subscribe. You are legend
Cheers, I'm glad you found it useful!
That's awesome dude!
Glad you enjoyed it!
PyTutorials I like the other way as well, the one in command prompt seems a bit faster
Cmd is faster but the GUI allows for people to understand what you can do with pyinstaller. Also this cleans files up which is a bonus.
PyTutorials Thanks mate
Congratulations and thank you very much for your work. I was having some problems to create an executable that could make an gif file to work. I tried py2exe, CX_Freeze and pure pyinstaller. Somehow only your program was able to solve that issue. Again, thank you very much! You're the man!
I'm glad you found it useful!
@@PyTutorials Same here. Tried py2exe, cx_freeze and pyinstaller. Couldn't package txt files with pyinstaller. This is the only thing that worked. The only additional thing I was stuck on was how to read the packaged files in code. Check here: stackoverflow.com/questions/56818178/python-to-exe-for-python3-7/56818199?noredirect=1#comment100189731_56818199
If you read the post linked at the bottom of the ui after every build, you would find help on how to debug and solve this issue.
Man, you've just saved my day! Thanks a lot!
Hugs from Brazil!
Glad you enjoyed it!
NO NOOO I DON'T WANT TO GO TO BRAZILL NOOOOOOOOOOOOOOOO
What a DUDE! just got me a guaranteed 10% on my masters assignment.
Haha, good luck!
This is great.. I like how it bandles the essentials of pyinstaller on one window, especially the icons feature. Makes work easier, thanks again..
Glad you like it!
Hello from Ukraine! Good job!
I never expectet to find auto-py-to-exe dev on yt lol
Being somewhat new to Python this is exactly what I've been hunting for. Thank you!
Glad you enjoyed it!
@@PyTutorials did not work
Their is another error now. It says:
"Command errored out with exit status 1:"
And many more lines in red font colour.
@@agastyagargthat means there is an error with your code exit code-1 means there is 1 error inside your code
Wow thanks a bunch man, literally saved my day. Loved the GUI btw
Thanks for the appreciation, I'm glad it worked for you!
@@nerdendra technically I guess you can, but it would be a lot of effort.
Eel ( I did a video on it at ua-cam.com/video/2kbeBzEQfXE/v-deo.html ) was used primary but I also used tkinter file dialogs.
You did a very nice work ngl ❤ thanks a lot
Glad you found it useful!
THIS IS TRULY AWESOME!!! Thank you for streamlining the process!!!!!
Glad you enjoyed it!
ERROR: Command errored out with exit status 1:
What is the actual error?
@@PyTutorials I got this same error when trying to install the requirements.txt,
The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Are you using easy_install?
Python 2.7 and above to 3.7 is supported.
i tried and worked.
I think, that your problem in your Python-version, because I'm using Python 3.8.1 and see this problem too :-(((
wow very interesting... its a python compiler... im new to the programming thing and learning python... its a nice language..
OMG TYSM! YOU JUST GOT A SUB!
Oh my god thank you! I couldnt get Py2exe, cx_freeze or pyinstaller to work.
This is a wrapper for pyinstaller. Most of the time it's just incorrect parameter usage / config. I'm glad it helped you though!
thx so much I'm trying to do that 1 month
Wow what a very helpful video! That GUI is sick! Does all the hardwork for you
Thanks helps for the appreciation, I'm glad you found this helpful!
GOD BLESS YOU!!! YOU ARE MY SAVIOR! THANK YOU!!!!!!!!!!!!
Glad you enjoyed it!
thanks you, finally i can find a good video that actually works, this is insane thx man have a great day
Holy crap thank you so much!
Glad you enjoyed it!
Love you!
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Is the problem solved ??
Is your current working directory the same as the root of the repository that you downloaded/cloned? If you are, then requirements.txt will be in the working directory - you can see this by looking for requirements.txt when executing `dir` in cmd (or `ls` in a linux terminal).
Subscribed. Thank you for sharing the high-quality video with amazing content.
Thanks heaps! I'm glad you enjoyed it!
You made this in python?
It's awesome
Yea I did, thanks for the appreciation!
PyTutorials Np
thanks
I’ve been trying to convert some of my long scripts to .exe and it just wasn’t working well, I look forward to trying this asap.
@@opus_X I guess we will never know...
@Dr. Lecter sadly not
Thanks man, this makes the whole process so much easier!
I'm glad you found it useful!
Thanks a lot
Thank you so much
Glad you enjoyed it!
:) just one thing, is there a way to change it to open up in firefox instead of chrome? because i prefer to use firefox.
Yes but you will need to modify the source and will then loose a bit of functionality. What's the difference between Firefox and chrome you desire? It is literally just app mode.
i'll just continue with chrome then lol. I really just prefer the look and feel of firefox. Plus Firefox is a little less information hungry, which i like.
You're right. Soon I might take a look at the project and look at my options for making other browsers compatible. Thanks for bringing this to my attention.
Unfortunately I won't be able to get the re-sized window like in Chrome but supporting other browsers is a good idea.
will it work in python 3.6.5
Yes, I believe it will
#This is my comment.
x = "You are "
y = "awesome"
z = x + y
print(z)
Even got the space 😃
hey i am getting warning lib not found: api-ms-win-crt dependency something plz help
drive.google.com/folderview?id=1h2QJCFsJyy1f6Lu3JAiuLENdui-4hvDG
this is my project plz convert it to .exe and provide me a link to download plz plz plz plz plz plz plz plz plz plz PLZ
plz plz plz
pla help plz plz plz
plz
Yes? What is wrong with this? I recommend you watch the video: 1:57
No. I do not want to seem rude but I do not package it for other people. I spent hours making this tool and give it away for free, you have my time. I can help with errors but you actually need to put some effort in.
Thanks. You Are Making Python Great Again!
Glad you enjoyed it!
It do not work by me, it opens pycharm and a script. Can you help me? Your turtorial was amazing!!
It opens PyCharm? What were you trying to do?
btw: i like the design of that auto-py-to-exe-GUI. How was that created?
I used github.com/python-eel/Eel to get a webview that can interact with Python and then just HTML+CSS+JavaScript in that
THANK YOU DUDE!!!!!!!!!!!!
1) Thank you for yout job, that is neat :)
2) The "Failed to execute script ***" issue : I've had it, and here is how I have solved it, for those you are in need.
In my case it was linked to Tkinter, precisely to the fact that I have put an icon to the root window (like root.iconbitmap("path_to_the_icone.ico")).
At first the path I had for the icon was relative ( the path was just "iconName.ico" because it was in the same folder as the python script), and it was causing the "Failed to execute script ***" issue. All I hav had to do to solve this is to put an absolute path instead of a relative one.
So, more clearly, I went from :
root.iconbitmap("iconeName.ico") => relative path => Failed to execute script ***
to
root.iconbitmap("C/user/[rest of the path]/iconeName.ico") => absolute path => no issue anymore.
Also, in the absolute path, use / and not \ as it creates other issues.
Thanks :)
os.path.join and other functions in os.path are a huge help with this. Also when using onefile mode, there is some extra wrapping steps outlined in the GUI when adding additional files.
Can anyone help?
Error: tkinter not found
For linux, you can install tkinter by executing: "sudo apt-get install python3-tk"
(Im running on Windows 10)
Check this out: stackoverflow.com/a/50027385 - seems like you may have excluded Tcl/Tk when installing Python
thx a lot it helpfuil because im lazy to do and it help a lot
I'm completely new to anything relating to programming, but I just made a simple tool that i want to convert into an exe.
I followed the steps, but when i got to ' pip install -r requirements.txt ' it throws a million errors.
ERROR: Command errored out with exit status 1: happened 4 times making an entire wall of red text
Edit: wasn't window defender firewall or bitdefender. turned both off
What is the error? You can paste it here - I can't help much without it.
Thank you Bro. Your saved me from wasting my time. Your're awesome 😎😉💯💯👍👍🐱💻🎂🎂😭😭🤩🤩
Glad you found it helpful!
Followed the video, but when I run run.py nothing happens (no ui pops up), also no errors. How can I fix this?
Does the command exit?
@@PyTutorials it worked after I restarted my pc
thanks a lot it worked perfectly
Are you the one who made this program !!! It is a legendary program and I have been using it for a while, and thank you very much for this great service❤❤❤
Yes, I am! I'm glad to hear you have found it useful 😃
Good py to exe converter
Cheers 👌
@@PyTutorialsyep
I am so lucky for this to just suddenly pop in my youtube recommended as this is what I needed
Only tutorial that helped me converting a .py file to a working exe.Big W
Glad it helped!
I wouldnt use it cuz I forget shit easily if I dont do it very often. Anyways, mad respect to this man for his activity on the comments and all his videos helps more than the docs for newcomers xD
Cheers 🙏
# u got a new sub lol
All work, Thanks for your work, bro
Thank u so much😁
You're welcome 😊
great job.
thank you!!! you save my live
you gain my very respect
This doesnt work me, it says "PyInstaller not found" when I have it installed then it says use "python -m pip install PyInstaller" when I try that it says 'python' is not recognized as an interneral or external command
I thought you said you did install it? Why use "python -m pip install PyInstaller" then? At 0:23 I show you how to check if pip is setup and set it up if required (in the video linked) - using this method will also add the same path that PyInstaller is located under (after you install it)
thanks
wow it really worked eventually im so happy thank you so much
I'm happy to hear that!
File "E:\New folder\lib\dis.py", line 292, in _get_const_info
argval = const_list[const_index]
IndexError: tuple index out of range
Project output will not be moved to output folder
Complete.
i am getting this error can someone tell me why and how to solve it
Give this a read: github.com/brentvollebregt/auto-py-to-exe/issues/215
@@PyTutorials thanks but i already solved it
It's works! thank you
Hey man, this is a great tool, for some reason it's not working for me to run it (I have disabled all anti-viruses and firewalls), and it just opens it up but gets stuck on initializing.
Are there any messages in the terminal you started auto-py-to-exe from or in the Chrome DevTools?
Try to reinstall the module
failed to execute script that sucks
There is a link that appears at the bottom of the UI after every build, is linked in the description of this video and is in the README file in the repository; did you read this? There are debugging steps in that post that talks about how to get the actual error (what you are saying here isn't an error).
@@PyTutorials All I know is that I spent hours and hours to read though all those error and solution to just create a working .exe, and I still haven't got it.
Now I am stuck to FileNotFoundError, which I guess is because I didn't put "correct" file path that pyinstaller want. I just want it to target a file in the same dir, I have tried .[filename], /[filename], [filename] and it all doesn't work.
you know generating a .exe in Java/c++/basic IDE is not even a thing, just a 2 click process. Why in hell python make it so difficult?
Are you using onefile? In the UI there is a link that appears that tells you to reference files in a particular way (stackoverflow.com/questions/7674790/bundling-data-files-with-pyinstaller-onefile/13790741#13790741)
Thanks for the great video but I cant get it to run. I could open Auto exe py but could not exe a py file. Error code: File "C:\Users\micha\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system')
Not to sure what I did wrong but im still new to coding and would love this to work. Any feed BAck would be great :) Still liked cause looks like an amazing program.
There is a help post linked in the ui, description of this video, the readme of the repo and is in the pinned comment; did you read this? I talk about this under the heading "LoadLibraryEx / The file cannot be accessed by the system" nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#loadlibraryex-the-file-cannot-be-accessed-by-the-system
@@PyTutorials Thanks and no I didnt your the best :)
@@PyTutorials Now that is works why cant I run the exe? Says "Failed to exe Script"
nvm i needed it to be console mode :) thanks for the best thing ever
can we just use: pip install auto-py-to-exe?
and BTW, I transferred my .py file to .exe file. But when I tried to run it on a pc without having python *at all* there was an error that say, that I missing some python 37 file in my AppData. Do you know how to fix it?
Yes, in the description I encourage you to use `pip install auto-py-to-exe` and in the repo it also encourages you to use `pip install auto-py-to-exe`. When you packaged the executable, I'm going to guess (you need to verify this) that the executable also had a lot of other files around it - this executable would have been in a folder located in the output folder. If this is true, did you just copy the .exe? You can't do that, you need the whole folder, that is the whole point of the other files there.
I recommend trying to run it on your machine first. If you move it to a different folder, does it still work? If you use the same method, and my assumptions of what occurred is correct, it will not run because you have not brought all the required resources with it.
@@PyTutorials
Do you mean that I should transfer the _pycache_, build, my original py file and the .spec file to the second PC? (my dist contain only the .exe)
If the answer is true, there is a way to combine EVERYTHING into 1 file?
Thanks a lot!
No, you do not need the __pycache__ folder or the .spec file. Inside the output folder, there should be another folder that contains you exe; you need to move that whole folder (by zip if you want) as the exe needs ALL of those files in the folder by it.
Look at the buttons I hit at 1:46 => "Select if you want the output to be one file or one folder."
@@PyTutorials
Once again thanks for the respond.
I did choose the option of one file and the output was only one exe file, that was the file I transferred. I'm trying to upgrade my auto py to EXE and Export and transfer again and I'll see what will happen. I hope that it will solve the problem. if not I don't know what to do.
What is the actual error you are getting? You never pasted the actual error here for me to look at.
hey i have a code and i doesnt opens when converted into exe.. can u please help ill send my code to u
You don't need to send me the code. Did you read my post on common issues with this tool - it appears clearly at the bottom of the ui after every build and is in the description of this video. Following the debugging steps in the post, what is the error you are getting?
Dude! You're awesome
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Is your current working directory the same as the root of the repository that you downloaded/cloned? If you are, then requirements.txt will be in the working directory - you can see this by looking for requirements.txt when executing `dir` in cmd (or `ls` in a linux terminal).
\auto-py-to-exe-master>py run.py
Traceback (most recent call last):
File "C:\Users\teema\auto-py-to-exe-master
un.py", line 6, in
from auto_py_to_exe import __main__ as apte
File "C:\Users\teema\auto-py-to-exe-master\auto_py_to_exe\__main__.py", line 10, in
from . import ui
File "C:\Users\teema\auto-py-to-exe-master\auto_py_to_exe\ui.py", line 5, in
import eel
ModuleNotFoundError: No module named 'eel'
What can i do?
Have you installed the requirements? Looks like you haven't
@@PyTutorials i have
Are you sure that you install the requirements in the same distribution of Python that you are using to execute run.py? If you execute `py -m pip list`, are all the dependencies within requirements.txt on the list?
You're amazing))
thank you!
Thank you for the tutorial. Is it possible to add file details such as: version, product name, copyright?
Check out the Windows specific options offered by PyInstaller (which are in this tool) - pyinstaller.readthedocs.io/en/stable/usage.html#windows-specific-options
@@PyTutorials much appreciated!
VERY great tutorial. Thank you so much. This is so useful.
Thank you sir
Also make support for python 3.4.4
Is something not working when you run it using Python 3.4?
Sir you are really ultra legend
Haha, glad you found it useful!
thanks yoo
thank u, it's what i need
That's great to hear!
Sir, I have pip installed a few libraries. I use these libraries in my program. When i convert to .exe, will a person without python and the installed libraries be able to run the program without any errors?
Yes, regarding all the libraries are added when packaging. Sometimes this does not happen automatically but there are instructions on how to figure out what to do in the links in the UI.
@@PyTutorials So I must install the packages in the same address as the .py file ? Also i have pyhton 3.8 so is this the same as pyinstaller?
No, you do not have to; the tool will find the libraries most of the time. If it does not happen or something is wrong with the exe, you need to read the help post. Also, from this videos description (and the repo): "Python 3.8 is not yet supported and Python 2.7 support has been dropped"
Thanks man, May God bless you.
Glad you found it useful!
When I convert my python file, it says 'Project output will not be moved to output folder'. What should I do??
Fix the error that was output right above that message - was there one?
@PyTutorials, thanks for responding so early! Okay, I tried it again, and this time, it successfully moved the project to a folder. But, when I open the EXE file, it opens, and after about fifteen seconds, it crashes. Please look in to it. Thanks. 😃
"Please look in to it" - please look into what?
Did you read the post that was linked at the bottom of the UI after the build?
best tips ever !!
Glad you find them useful!
If i convert said .py to .exe and run it on a pc without python installed will it run?
Yes, that is the whole point of converting it to an executable.
@@PyTutorials oh nice
I tried this but it's saying 'Failed to execute the script' when i click the exe file at the end. TT
Did you follow the link that appears at the bottom of the UI at the end of each build? This tells you how to find the error. What was the error?
I wonder if billions of coders need py-to-exe- converter why python creators didn't add any default converter for many many years. I refuse to understand that.
I am getting the following error:
OSError: [WinError 1920] The file cannot be accessed by the system
During handling of the above exception, another exception occurred:
...
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system')
Project output will not be moved to output folder
If you run the tool with admin privileges, it should get pass the file restrictions you are facing.
@@PyTutorials Thanks for the quick response. I am still getting the exact same problem, even with administrator privileges.
What version of Python are you using? Sometimes reinstalling it can help get past this.
@@PyTutorials I am using 3.7.8. I'll try reinstalling
@@PyTutorials It seems to be working now, thank you :)
amazing
I created a one file exe with this, but the image are not coming, there is a error image not found
What sort of reference are you using to get the image?
@@PyTutorials hey , I solve the whole error , with a hard work of 2 hours
But you make a nice tool
thank you very much kind sir
You are very welcome
Works like a charm
Awesome to hear 👌
hey men, youre my hero thank very much
You're welcome 👍
I followed all of the steps, whenever I run it I'm getting (1920,LoadLibraryEx,the file cannot be accessed by the system) error. I tried running as administrator, downgrading to python 3.7, uninstalling and reinstalling python. None of that works. Please help me fix this.
Have you tried running with elevated permissions?
@@PyTutorials Yes, it's still having the same error.
What is the full error?
@@PyTutorials This is the output:
Running auto-py-to-exe v2.7.5
Building directory: C:\Users\user\AppData\Local\Temp\tmpli14o19p
Provided command: pyinstaller --noconfirm --onefile --console "C:/Users/user/.PyCharmCE2018.2/config/scratches/keyLogger.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onefile --console C:/Users/user/.PyCharmCE2018.2/config/scratches/keyLogger.py --distpath C:\Users\user\AppData\Local\Temp\tmpli14o19p\application --workpath C:\Users\user\AppData\Local\Temp\tmpli14o19p\build --specpath C:\Users\user\AppData\Local\Temp\tmpli14o19p
41414 INFO: PyInstaller: 3.6
41414 INFO: Python: 3.7.8
41422 INFO: Platform: Windows-10-10.0.18362-SP0
41430 INFO: wrote C:\Users\user\AppData\Local\Temp\tmpli14o19p\keyLogger.spec
41438 INFO: UPX is not available.
41446 INFO: Extending PYTHONPATH with paths
['C:\\Users\\user\\.PyCharmCE2018.2\\config\\scratches',
'C:\\Users\\user\\AppData\\Local\\Temp\\tmpli14o19p']
41462 INFO: checking Analysis
41462 INFO: Building Analysis because Analysis-00.toc is non existent
41478 INFO: Initializing module dependency graph...
41486 INFO: Caching module graph hooks...
41510 INFO: Analyzing base_library.zip ...
44904 INFO: Processing pre-find module path hook distutils
44912 INFO: distutils: retargeting to non-venv dir 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2288.0_x64__qbz5n2kfra8p0\\lib'
46832 INFO: Caching module dependency graph...
47024 INFO: running Analysis Analysis-00.toc
An error occurred while packaging
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error
yield
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx
return _dll._LoadLibraryEx(fileName, 0, flags)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi\_dll.py", line 26, in _LoadLibraryEx
function_name='LoadLibraryEx')
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi\_util.py", line 81, in __call__
self._raise_error(function_name)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\core\cffi\_util.py", line 92, in _raise_error
raise exception
OSError: [WinError 1920] The file cannot be accessed by the system
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\Desktop\auto-py-to-exe-master\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 734, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 681, in build
exec(code, spec_namespace)
File "C:\Users\user\AppData\Local\Temp\tmpli14o19p\keyLogger.spec", line 17, in
noarchive=False)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 244, in __init__
self.__postinit__()
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
self.assemble()
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\building\build_main.py", line 395, in assemble
redirects=self.binding_redirects)[1:])
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 228, in Dependencies
for ftocnm, fn in getAssemblyFiles(pth, manifest, redirects):
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 404, in getAssemblyFiles
for assembly in getAssemblies(pth):
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\depend\bindepend.py", line 355, in getAssemblies
res = GetManifestResources(pth)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\utils\win32\winmanifest.py", line 1007, in GetManifestResources
return winresource.GetResources(filename, [RT_MANIFEST], names, languages)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\PyInstaller\utils\win32\winresource.py", line 170, in GetResources
hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx
return _dll._LoadLibraryEx(fileName, 0, flags)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2288.0_x64__qbz5n2kfra8p0\lib\__contextlib.py__", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryEx', 'The file cannot be accessed by the system')
Project output will not be moved to output folder
Complete.
If running it with admin permissions has not worked, you might have an issue with your permission setup. Running this tool with elevated permissions in this situation has always solved it for me.
this guy is fast as f
Haha, I do speed it up a bit in places to match the audio
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Have you solved it ??
Is your current working directory the same as the root of the repository that you downloaded/cloned? If you are, then requirements.txt will be in the working directory - you can see this by looking for requirements.txt when executing `dir` in cmd (or `ls` in a linux terminal).
@@PyTutorials i got that diwn pact, now when i run autp py to exe it says lib not found and then says error, any suggestions?
Could you be a bit more specific? Where exactly does it say this. What did you do to get this. What is the error / message.
wow this is so great i wanted to do py to exe in cmd it kept saying pyinstaller cant be found but this gui converted it easily
thanks very much!♥
You're welcome 👌
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Ok dude, you don't need to spam
Fucking clean. Keep up dude
Glad you enjoyed it!
hey every time i convert it , it says it has a virus and auto deletes after i look at it. i also scanned it and had virus?
Did you read the post I linked in the description? I talk about this issue here: nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#my-antivirus-detected-the-exe-as-a-virus
@@PyTutorials no but will now, why u stop uploading but keep commenting?
Just don't have time to do videos at the moment. Do have time to help others though 👍
ImportError: DLL load failed while importing _cext: The specified module could not be found.
whati should do