

This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong. If you're having issues with the packaged executable or using this tool in general, I recommend you read my blog post on common issues when using auto-py-to-exe. If you need something visual to help you get started, I made a video for the original release of this project some things may be different but the same concepts still apply. If you want to have the output directory in the JSON config, add the directory under nonPyinstallerOptions.outputDirectory in the JSON file (will need to create a new key). This JSON config export action does not save the output directory automatically as moving hosts could mean different directory structures. This can then be imported into the UI again to re-populate all fields. Instead of inserting the same data into the UI over and over again, you can export the current state by going to the "Configuration" section within the settings tab and exporting the config to a JSON file. If you are running this package locally, you will need to call python -m auto_py_to_exe instead of auto-py-to-exe JSON Configuration These can be generated in the settings tab. Provide a configuration file (json) to pre-fill the UI. Will not try to find Chrome.ĭon't try to open the UI in a browser and simply print out the address that the application can be accessed at. Open the UI using the default browser (which may be Chrome). Pre-fill the "Script Location" field in the UI.


Select other options and add things like an icon or other files.Outline will become blue when file exists.Select your script location (paste in or use a file explorer).Make sure you are in the directory below auto_py_to_exe (you will be after step 3) when calling python -m auto_py_to_exe or you will need to reference the folder auto_py_to_exe absolutely/relatively to where you currently are. A Chrome window in app mode will open with the project running inside. Now to run the application, execute python -m auto_py_to_exe.
#PYTHON TO 2.7.3 TO 2.7.9 INSTALL#
Execute python -m pip install -r requirements.txt.Open cmd/terminal and cd into the project.You can run this project locally by following these steps:
