Convert PY to EXE Automatically

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

КОМЕНТАРІ • 3,5 тис.

  • @PyTutorials
    @PyTutorials  3 роки тому +16

    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/

    • @gameplayz5847
      @gameplayz5847 3 роки тому +1

      ok

    • @spookytenti4735
      @spookytenti4735 3 роки тому

      pip' is not recognized as an internal or external command,
      operable program or batch file. this is cmd error code. what i do
      ?

    • @PyTutorials
      @PyTutorials  3 роки тому

      @@spookytenti4735 Did you follow the video I talked about when testing if pip works or not?

    • @YouChube3
      @YouChube3 3 роки тому

      ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

    • @PyTutorials
      @PyTutorials  3 роки тому

      Is your working directory the same directory as the root of the project?

  • @scp-burgerking658
    @scp-burgerking658 4 роки тому +75

    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

    • @PyTutorials
      @PyTutorials  4 роки тому +11

      Cheers, I'm glad you found it useful!

  • @Anonymous-cq2dtp
    @Anonymous-cq2dtp 6 років тому +45

    That's awesome dude!

    • @PyTutorials
      @PyTutorials  6 років тому +2

      Glad you enjoyed it!

    • @Anonymous-cq2dtp
      @Anonymous-cq2dtp 6 років тому +1

      PyTutorials I like the other way as well, the one in command prompt seems a bit faster

    • @PyTutorials
      @PyTutorials  6 років тому +5

      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.

    • @Anonymous-cq2dtp
      @Anonymous-cq2dtp 6 років тому +2

      PyTutorials Thanks mate

  • @iagoegias188
    @iagoegias188 5 років тому +15

    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
      @PyTutorials  5 років тому +1

      I'm glad you found it useful!

    • @zozouzid
      @zozouzid 5 років тому

      @@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
      @PyTutorials  5 років тому

      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.

  • @deborahribeiro8524
    @deborahribeiro8524 5 років тому +11

    Man, you've just saved my day! Thanks a lot!
    Hugs from Brazil!

    • @PyTutorials
      @PyTutorials  5 років тому

      Glad you enjoyed it!

    • @kindersmith8407
      @kindersmith8407 3 роки тому

      NO NOOO I DON'T WANT TO GO TO BRAZILL NOOOOOOOOOOOOOOOO

  • @NickScrivener
    @NickScrivener 5 років тому +10

    What a DUDE! just got me a guaranteed 10% on my masters assignment.

  • @victormwaba6688
    @victormwaba6688 6 років тому +30

    This is great.. I like how it bandles the essentials of pyinstaller on one window, especially the icons feature. Makes work easier, thanks again..

  • @ЄвгенійСінєльніков
    @ЄвгенійСінєльніков 5 років тому +7

    Hello from Ukraine! Good job!

  • @houzedai9316
    @houzedai9316 2 роки тому +2

    I never expectet to find auto-py-to-exe dev on yt lol

  • @joeh6536
    @joeh6536 5 років тому +32

    Being somewhat new to Python this is exactly what I've been hunting for. Thank you!

    • @PyTutorials
      @PyTutorials  5 років тому +2

      Glad you enjoyed it!

    • @agastyagarg
      @agastyagarg 3 роки тому

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

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

      @@agastyagargthat means there is an error with your code exit code-1 means there is 1 error inside your code

  • @emreyurtseven23
    @emreyurtseven23 6 років тому +13

    Wow thanks a bunch man, literally saved my day. Loved the GUI btw

    • @PyTutorials
      @PyTutorials  6 років тому +1

      Thanks for the appreciation, I'm glad it worked for you!

    • @PyTutorials
      @PyTutorials  5 років тому +1

      @@nerdendra technically I guess you can, but it would be a lot of effort.

    • @PyTutorials
      @PyTutorials  5 років тому +1

      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.

  • @moon911x
    @moon911x 2 місяці тому +2

    You did a very nice work ngl ❤ thanks a lot

    • @PyTutorials
      @PyTutorials  2 місяці тому +1

      Glad you found it useful!

  • @Azurath100
    @Azurath100 5 років тому +6

    THIS IS TRULY AWESOME!!! Thank you for streamlining the process!!!!!

  • @ib1445
    @ib1445 4 роки тому +7

    ERROR: Command errored out with exit status 1:

    • @PyTutorials
      @PyTutorials  4 роки тому

      What is the actual error?

    • @thomasrad5202
      @thomasrad5202 4 роки тому +1

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

    • @PyTutorials
      @PyTutorials  4 роки тому

      Are you using easy_install?

    • @fv4202x
      @fv4202x 4 роки тому +1

      Python 2.7 and above to 3.7 is supported.
      i tried and worked.

    • @garrip91
      @garrip91 4 роки тому

      I think, that your problem in your Python-version, because I'm using Python 3.8.1 and see this problem too :-(((

  • @jean-michelb7290
    @jean-michelb7290 2 роки тому +1

    wow very interesting... its a python compiler... im new to the programming thing and learning python... its a nice language..

  • @ahmedlive
    @ahmedlive 4 роки тому +3

    OMG TYSM! YOU JUST GOT A SUB!

  • @jonas5361
    @jonas5361 4 роки тому +3

    Oh my god thank you! I couldnt get Py2exe, cx_freeze or pyinstaller to work.

    • @PyTutorials
      @PyTutorials  4 роки тому

      This is a wrapper for pyinstaller. Most of the time it's just incorrect parameter usage / config. I'm glad it helped you though!

  • @cirql_nvm
    @cirql_nvm 6 місяців тому +1

    thx so much I'm trying to do that 1 month

  • @gallegom58
    @gallegom58 6 років тому +4

    Wow what a very helpful video! That GUI is sick! Does all the hardwork for you

    • @PyTutorials
      @PyTutorials  6 років тому

      Thanks helps for the appreciation, I'm glad you found this helpful!

  • @angelbalashev
    @angelbalashev 6 років тому +6

    GOD BLESS YOU!!! YOU ARE MY SAVIOR! THANK YOU!!!!!!!!!!!!

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

    thanks you, finally i can find a good video that actually works, this is insane thx man have a great day

  • @blockaticus7848
    @blockaticus7848 5 років тому +3

    Holy crap thank you so much!

  • @novoehuevoe9340
    @novoehuevoe9340 5 років тому +5

    Love you!

  • @tybutler6153
    @tybutler6153 4 роки тому +2

    ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

    • @sheerheartoverdrive
      @sheerheartoverdrive 4 роки тому +1

      Is the problem solved ??

    • @PyTutorials
      @PyTutorials  4 роки тому

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

  • @fantasyd1928
    @fantasyd1928 6 років тому +4

    Subscribed. Thank you for sharing the high-quality video with amazing content.

    • @PyTutorials
      @PyTutorials  6 років тому +1

      Thanks heaps! I'm glad you enjoyed it!

  • @bogpan
    @bogpan 6 років тому +3

    You made this in python?
    It's awesome

    • @PyTutorials
      @PyTutorials  6 років тому

      Yea I did, thanks for the appreciation!

    • @bogpan
      @bogpan 6 років тому +2

      PyTutorials Np

  • @彼らは無生物です
    @彼らは無生物です Рік тому +2

    thanks

  • @masonm5173
    @masonm5173 6 років тому +15

    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.

    • @portalthreee
      @portalthreee 4 роки тому +9

      @@opus_X I guess we will never know...

    • @portalthreee
      @portalthreee 2 роки тому

      @Dr. Lecter sadly not

  • @mheuuj
    @mheuuj 4 роки тому +3

    Thanks man, this makes the whole process so much easier!

    • @PyTutorials
      @PyTutorials  4 роки тому +1

      I'm glad you found it useful!

  • @ankeshkumar5753
    @ankeshkumar5753 3 роки тому +2

    Thanks a lot

  • @Rock-pu8bw
    @Rock-pu8bw 6 років тому +8

    Thank you so much

    • @PyTutorials
      @PyTutorials  6 років тому

      Glad you enjoyed it!

    • @Rock-pu8bw
      @Rock-pu8bw 6 років тому

      :) just one thing, is there a way to change it to open up in firefox instead of chrome? because i prefer to use firefox.

    • @PyTutorials
      @PyTutorials  6 років тому

      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.

    • @Rock-pu8bw
      @Rock-pu8bw 6 років тому

      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.

    • @PyTutorials
      @PyTutorials  6 років тому +1

      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.

  • @raghunathprasad2174
    @raghunathprasad2174 6 років тому +4

    will it work in python 3.6.5

  • @bvladimirpl
    @bvladimirpl 3 роки тому +1

    #This is my comment.
    x = "You are "
    y = "awesome"
    z = x + y
    print(z)

  • @ItsVinaySingh98
    @ItsVinaySingh98 5 років тому +3

    hey i am getting warning lib not found: api-ms-win-crt dependency something plz help

    • @ItsVinaySingh98
      @ItsVinaySingh98 5 років тому

      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

    • @ItsVinaySingh98
      @ItsVinaySingh98 5 років тому

      plz plz plz

    • @SW-vf7gd
      @SW-vf7gd 5 років тому

      pla help plz plz plz
      plz

    • @PyTutorials
      @PyTutorials  5 років тому +1

      Yes? What is wrong with this? I recommend you watch the video: 1:57

    • @PyTutorials
      @PyTutorials  5 років тому +2

      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.

  • @christianbegg2465
    @christianbegg2465 5 років тому +3

    Thanks. You Are Making Python Great Again!

  • @recordteamnl5721
    @recordteamnl5721 4 роки тому +1

    It do not work by me, it opens pycharm and a script. Can you help me? Your turtorial was amazing!!

    • @PyTutorials
      @PyTutorials  4 роки тому

      It opens PyCharm? What were you trying to do?

  • @banderilllero
    @banderilllero 2 місяці тому +1

    btw: i like the design of that auto-py-to-exe-GUI. How was that created?

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

      I used github.com/python-eel/Eel to get a webview that can interact with Python and then just HTML+CSS+JavaScript in that

  • @matheusminto
    @matheusminto 4 роки тому +2

    THANK YOU DUDE!!!!!!!!!!!!

  • @Wahars
    @Wahars 4 роки тому +1

    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 :)

    • @PyTutorials
      @PyTutorials  4 роки тому

      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.

  • @shadowdotpy
    @shadowdotpy 3 роки тому +1

    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)

    • @PyTutorials
      @PyTutorials  3 роки тому

      Check this out: stackoverflow.com/a/50027385 - seems like you may have excluded Tcl/Tk when installing Python

  • @minhmang3372
    @minhmang3372 3 роки тому +1

    thx a lot it helpfuil because im lazy to do and it help a lot

  • @gabe7120
    @gabe7120 3 роки тому +1

    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

    • @PyTutorials
      @PyTutorials  3 роки тому

      What is the error? You can paste it here - I can't help much without it.

  • @XoLucyna
    @XoLucyna 5 років тому +2

    Thank you Bro. Your saved me from wasting my time. Your're awesome 😎😉💯💯👍👍🐱‍💻🎂🎂😭😭🤩🤩

    • @PyTutorials
      @PyTutorials  5 років тому +1

      Glad you found it helpful!

  • @xVivio
    @xVivio 2 роки тому +1

    Followed the video, but when I run run.py nothing happens (no ui pops up), also no errors. How can I fix this?

    • @PyTutorials
      @PyTutorials  2 роки тому

      Does the command exit?

    • @xVivio
      @xVivio 2 роки тому

      @@PyTutorials it worked after I restarted my pc

  • @roman_surchy5249
    @roman_surchy5249 2 роки тому +1

    thanks a lot it worked perfectly

  • @MohamadAmen469
    @MohamadAmen469 3 роки тому +1

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

    • @PyTutorials
      @PyTutorials  3 роки тому +1

      Yes, I am! I'm glad to hear you have found it useful 😃

  • @powerlevelvlog1089
    @powerlevelvlog1089 3 роки тому +2

    Good py to exe converter

  • @myxology5941
    @myxology5941 2 роки тому +2

    I am so lucky for this to just suddenly pop in my youtube recommended as this is what I needed

  • @codingwithrez9921
    @codingwithrez9921 2 роки тому +1

    Only tutorial that helped me converting a .py file to a working exe.Big W

  • @muhammadmusaabulhaq3699
    @muhammadmusaabulhaq3699 3 роки тому +1

    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

  • @crypto1886
    @crypto1886 3 роки тому +1

    # u got a new sub lol

  • @ВадимСтець-я6щ
    @ВадимСтець-я6щ 4 роки тому +1

    All work, Thanks for your work, bro

  • @harshplayz31882
    @harshplayz31882 2 роки тому +2

    Thank u so much😁

  • @xugaoxiang
    @xugaoxiang 3 роки тому +1

    great job.

  • @guaicaipurouzumaki7654
    @guaicaipurouzumaki7654 3 роки тому +1

    thank you!!! you save my live

  • @ulvigulmaliyev2034
    @ulvigulmaliyev2034 2 роки тому +1

    you gain my very respect

  • @iJoshHD
    @iJoshHD 5 років тому +1

    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

    • @PyTutorials
      @PyTutorials  5 років тому

      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)

  • @Lurozd
    @Lurozd 3 роки тому +1

    thanks

  • @mintychoco9062
    @mintychoco9062 3 роки тому +1

    wow it really worked eventually im so happy thank you so much

  • @prashantjha1339
    @prashantjha1339 2 роки тому +1

    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

    • @PyTutorials
      @PyTutorials  2 роки тому

      Give this a read: github.com/brentvollebregt/auto-py-to-exe/issues/215

    • @prashantjha1339
      @prashantjha1339 2 роки тому

      @@PyTutorials thanks but i already solved it

  • @bbbeats72
    @bbbeats72 3 роки тому +1

    It's works! thank you

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

    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.

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

      Are there any messages in the terminal you started auto-py-to-exe from or in the Chrome DevTools?

    • @lukas5238
      @lukas5238 Рік тому

      Try to reinstall the module

  • @27455628
    @27455628 4 роки тому +2

    failed to execute script that sucks

    • @PyTutorials
      @PyTutorials  4 роки тому

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

    • @27455628
      @27455628 4 роки тому

      ​@@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?

    • @PyTutorials
      @PyTutorials  4 роки тому

      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)

  • @naclan8105
    @naclan8105 3 роки тому +1

    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.

    • @PyTutorials
      @PyTutorials  3 роки тому

      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

    • @naclan8105
      @naclan8105 3 роки тому

      @@PyTutorials Thanks and no I didnt your the best :)

    • @naclan8105
      @naclan8105 3 роки тому

      @@PyTutorials Now that is works why cant I run the exe? Says "Failed to exe Script"

    • @naclan8105
      @naclan8105 3 роки тому +1

      nvm i needed it to be console mode :) thanks for the best thing ever

  • @24GAMING-z2n
    @24GAMING-z2n 5 років тому +1

    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?

    • @PyTutorials
      @PyTutorials  5 років тому +1

      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.

    • @24GAMING-z2n
      @24GAMING-z2n 5 років тому +1

      @@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!

    • @PyTutorials
      @PyTutorials  5 років тому +1

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

    • @24GAMING-z2n
      @24GAMING-z2n 5 років тому +1

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

    • @PyTutorials
      @PyTutorials  5 років тому +1

      What is the actual error you are getting? You never pasted the actual error here for me to look at.

  • @justupid925
    @justupid925 4 роки тому +1

    hey i have a code and i doesnt opens when converted into exe.. can u please help ill send my code to u

    • @PyTutorials
      @PyTutorials  4 роки тому

      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?

  • @codewithatharv
    @codewithatharv 2 роки тому +1

    Dude! You're awesome

  • @tybutler6153
    @tybutler6153 4 роки тому +1

    ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

    • @PyTutorials
      @PyTutorials  4 роки тому

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

  • @meatimch4213
    @meatimch4213 3 роки тому +1

    \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?

    • @PyTutorials
      @PyTutorials  3 роки тому

      Have you installed the requirements? Looks like you haven't

    • @meatimch4213
      @meatimch4213 3 роки тому

      @@PyTutorials i have

    • @PyTutorials
      @PyTutorials  3 роки тому

      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?

  • @crabcake_exe1988
    @crabcake_exe1988 3 роки тому +1

    You're amazing))

  • @hamzazad5258
    @hamzazad5258 5 місяців тому +1

    thank you!

  • @yousefdajani5307
    @yousefdajani5307 3 роки тому +1

    Thank you for the tutorial. Is it possible to add file details such as: version, product name, copyright?

    • @PyTutorials
      @PyTutorials  3 роки тому +1

      Check out the Windows specific options offered by PyInstaller (which are in this tool) - pyinstaller.readthedocs.io/en/stable/usage.html#windows-specific-options

    • @yousefdajani5307
      @yousefdajani5307 3 роки тому +1

      @@PyTutorials much appreciated!

  • @jakes-dev1337
    @jakes-dev1337 2 роки тому +1

    VERY great tutorial. Thank you so much. This is so useful.

  • @saegon2
    @saegon2 2 роки тому +1

    Thank you sir

  • @mohitgupta2699
    @mohitgupta2699 4 роки тому +1

    Also make support for python 3.4.4

    • @PyTutorials
      @PyTutorials  4 роки тому

      Is something not working when you run it using Python 3.4?

  • @ViratKohli-jj3wj
    @ViratKohli-jj3wj 5 років тому +2

    Sir you are really ultra legend

    • @PyTutorials
      @PyTutorials  5 років тому +1

      Haha, glad you found it useful!

  • @thisarashayamal5887
    @thisarashayamal5887 2 роки тому +1

    thanks yoo

  • @葉駿成-w6k
    @葉駿成-w6k 3 роки тому +1

    thank u, it's what i need

  • @neeladrisarangi1478
    @neeladrisarangi1478 4 роки тому +1

    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?

    • @PyTutorials
      @PyTutorials  4 роки тому +1

      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.

    • @neeladrisarangi1478
      @neeladrisarangi1478 4 роки тому +1

      @@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?

    • @PyTutorials
      @PyTutorials  4 роки тому

      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"

  • @zishanabuobaida3684
    @zishanabuobaida3684 2 роки тому +1

    Thanks man, May God bless you.

  • @chiranthnandi245
    @chiranthnandi245 4 роки тому +1

    When I convert my python file, it says 'Project output will not be moved to output folder'. What should I do??

    • @PyTutorials
      @PyTutorials  4 роки тому

      Fix the error that was output right above that message - was there one?

    • @chiranthnandi245
      @chiranthnandi245 4 роки тому

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

    • @PyTutorials
      @PyTutorials  4 роки тому

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

  • @Kissanou
    @Kissanou 5 років тому +1

    best tips ever !!

  • @lastfirst1331
    @lastfirst1331 5 років тому +1

    If i convert said .py to .exe and run it on a pc without python installed will it run?

    • @PyTutorials
      @PyTutorials  5 років тому +1

      Yes, that is the whole point of converting it to an executable.

    • @lastfirst1331
      @lastfirst1331 5 років тому +1

      @@PyTutorials oh nice

  • @AngSu
    @AngSu 5 років тому

    I tried this but it's saying 'Failed to execute the script' when i click the exe file at the end. TT

    • @PyTutorials
      @PyTutorials  5 років тому

      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?

  • @DontMansion
    @DontMansion Рік тому

    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.

  • @kypello3512
    @kypello3512 4 роки тому +1

    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

    • @PyTutorials
      @PyTutorials  4 роки тому

      If you run the tool with admin privileges, it should get pass the file restrictions you are facing.

    • @kypello3512
      @kypello3512 4 роки тому

      @@PyTutorials Thanks for the quick response. I am still getting the exact same problem, even with administrator privileges.

    • @PyTutorials
      @PyTutorials  4 роки тому

      What version of Python are you using? Sometimes reinstalling it can help get past this.

    • @kypello3512
      @kypello3512 4 роки тому +1

      @@PyTutorials I am using 3.7.8. I'll try reinstalling

    • @kypello3512
      @kypello3512 4 роки тому +1

      @@PyTutorials It seems to be working now, thank you :)

  • @scriptx1682
    @scriptx1682 5 років тому +1

    amazing

  • @mohitgupta2699
    @mohitgupta2699 4 роки тому +1

    I created a one file exe with this, but the image are not coming, there is a error image not found

    • @PyTutorials
      @PyTutorials  4 роки тому +2

      What sort of reference are you using to get the image?

    • @mohitgupta2699
      @mohitgupta2699 4 роки тому +2

      @@PyTutorials hey , I solve the whole error , with a hard work of 2 hours
      But you make a nice tool

  • @odai11
    @odai11 3 роки тому +1

    thank you very much kind sir

  • @ArachnidAbby
    @ArachnidAbby 4 роки тому +1

    Works like a charm

  • @oleidergonzalezvetancourt4952
    @oleidergonzalezvetancourt4952 3 роки тому +1

    hey men, youre my hero thank very much

  • @omerreich1926
    @omerreich1926 4 роки тому +1

    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
      @PyTutorials  4 роки тому

      Have you tried running with elevated permissions?

    • @omerreich1926
      @omerreich1926 4 роки тому

      @@PyTutorials Yes, it's still having the same error.

    • @PyTutorials
      @PyTutorials  4 роки тому

      What is the full error?

    • @omerreich1926
      @omerreich1926 4 роки тому

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

    • @PyTutorials
      @PyTutorials  4 роки тому

      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.

  • @mrlaunchmk
    @mrlaunchmk 4 роки тому +1

    this guy is fast as f

    • @PyTutorials
      @PyTutorials  4 роки тому

      Haha, I do speed it up a bit in places to match the audio

  • @tybutler6153
    @tybutler6153 4 роки тому +1

    ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

    • @sheerheartoverdrive
      @sheerheartoverdrive 4 роки тому +1

      Have you solved it ??

    • @PyTutorials
      @PyTutorials  4 роки тому

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

    • @tybutler6153
      @tybutler6153 4 роки тому

      @@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?

    • @PyTutorials
      @PyTutorials  4 роки тому

      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.

  • @EXXITY
    @EXXITY 3 роки тому +1

    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

  • @ZyadHany35
    @ZyadHany35 3 роки тому +1

    thanks very much!♥

  • @tybutler6153
    @tybutler6153 4 роки тому +1

    ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

    • @PyTutorials
      @PyTutorials  4 роки тому

      Ok dude, you don't need to spam

  • @ΜαύροκΆραχνο
    @ΜαύροκΆραχνο 5 років тому +1

    Fucking clean. Keep up dude

  • @gavineby7769
    @gavineby7769 3 роки тому +1

    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?

    • @PyTutorials
      @PyTutorials  3 роки тому

      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

    • @gavineby7769
      @gavineby7769 3 роки тому

      @@PyTutorials no but will now, why u stop uploading but keep commenting?

    • @PyTutorials
      @PyTutorials  3 роки тому

      Just don't have time to do videos at the moment. Do have time to help others though 👍

  • @stephennirmal
    @stephennirmal 6 місяців тому

    ImportError: DLL load failed while importing _cext: The specified module could not be found.
    whati should do