I'm not too familiar with using PyInstaller but I have been trying to use it to convert my .py files to a single exe. I am using Windows 10 with Python 3.10.5 and PyInstaller 5.2. My files look like the following:
Scripts Folder
-venv Folder
-Dependent Files Folder
-main.py
-1.py
-2.py
-3.py
-4.py
I am able to create an exe using 'pyinstaller --onefile -w main.py' in the console and move it from dist to the main Scripts folder. Once I launch the exe I get the error FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Jack\AppData\Local\Temp\_MEIXXXXX\palettable\colorbrewer\data\colorbrewer_all_schemes.json'. I've also tried using auto-py-to-exe and get the same issue.
When I check that directory I don't see a folder 'palettable' in the _MEIXXXXX folder (hence the error), but I'm not sure how to add it to that directory. I do see 'colorbrewer_all_schemes.json' in the venv folder within the same _MEIXXXXX folder but the exe can't find it there. I can't add it manually cause it is a temp folder and a new _MEIXXXXX folder will be generated each time I launch the exe again. I've also made sure the library 'palettable' is installed in the virtual environment and in console.
As I say I'm not too familiar with converting .py files to .exe so any help is appreciated. Let me know if you need more information.