pythonpyinstallerauto-py-to-exe

Is there any way to convert more than one python file to a program?


So, I have written a lil program in python. It consists of a main.py, a utils.py (with all my functions), a requirements.txt and a folder named resources with two .txt files in which the scripts save lists. Now is my problem: I wanted to convert the files using a) pyinstaller and then b) auto-py-to-exe, but none of these worked for me!

Everytime, a .exe came out which executed only the first parts of the main.py. But as soon as the program needs to access e.g. the utils.py, the exe crashes. I added all the necessary files by using --add-data (which the program fills out by itself). What can I do or what did I do wrong?


Solution

  • The solution for me was:

    Now, everything works as it should be!