I am getting errors when trying to freeze a script that imports openpyxl - and no .exe is generated. The same errors if the script contains only 'import openpyxl'.
I am currently using Python 3.7.1, Pyinstaller 3.6, and Openpyxl 2.5.12. I freeze the script by copying it into the Anaconda scripts folder and then using powershell to summon pyinstaller to freeze the script into a single .exe. I have successfully frozen some other scripts using this method.
Searching for answers online showed that openpyxl doesn't like being frozen, but a number of places seemed to say that they had managed to find workarounds.
I have tried a number of the solutions suggested, including placing the hook file in the directory and calling it out as a hidden import in the powershell window:
.\pyinstaller --hidden-import=openpyxl --onefile -w 'script.py'
However, nothing I have found has worked. My script is rather large and I would prefer to not have to re-write it using a different excel module. Is there a way I can freeze my script to allow others to use it without having to install python?