auto-py-to-exe
auto-py-to-exe is a Python library that provides a simple graphical interface for converting Python (.py) scripts into standalone executable files (.exe) using PyInstaller. It's currently at version 2.50.0 and maintains a frequent release cadence with minor and patch updates every few weeks, primarily focused on enhancements, bug fixes, and translations.
Common errors
-
Failed to execute script [script_name]
cause This error, originating from PyInstaller, often means that your bundled executable is missing a required runtime dependency (e.g., a data file, a dynamically loaded module, or a 'hidden import').fixIn the auto-py-to-exe GUI, go to the 'Add Files' tab to include data files, or the 'Advanced' tab to specify 'Hidden Imports' or 'Excluded Modules' that PyInstaller might miss. -
The auto-py-to-exe application was unable to start: No browser found
cause The GUI for auto-py-to-exe uses the Eel library, which requires a compatible web browser (Chrome or Edge) to render the interface.fixInstall Google Chrome or Microsoft Edge on your system. If they are installed, ensure they are up-to-date and correctly recognized by your operating system. -
ModuleNotFoundError: No module named 'Eel' (or 'PyInstaller')
cause This indicates that the core dependencies required for auto-py-to-exe to run were not installed correctly or have been corrupted.fixReinstall auto-py-to-exe using `pip install --upgrade auto-py-to-exe` to ensure all dependencies are correctly installed.
Warnings
- gotcha Running auto-py-to-exe from the System32 directory on Windows can cause permission issues or unexpected behavior. It's recommended to run it from a standard user directory.
- deprecated The `-m` option for specifying PyInstaller modules has been deprecated and is now hidden in the GUI.
- gotcha Executables generated by PyInstaller (and thus auto-py-to-exe) may occasionally trigger false positives in antivirus software due to their packing methods. This is a common issue with many executable packers.
- gotcha The GUI relies on a modern web browser (Chrome or Edge in app mode) to function. If no compatible browser is found, the application may fail to start.
Install
-
pip install auto-py-to-exe
Quickstart
auto-py-to-exe