I have successfully edited my spec file and added the folder with my data to it. It builds fine but it still can\'t access the data. WHen i try to run the compiled .exe i ge
I found same error after creating a standalone executable like this:
pyi-makespec.exe -F program.py
## Customize script.spec just created
and
pyinstaller.exe -F script.spec
so I needed to run the executable as administrator to solve it.
I don't know the reason because it wasn't my computer. I had done the process in mine first and worked like a charm but not there. Perhaps some security configuration or a weird installation of python or wxpython, but I add this solution here because I was looking for hours without success, and it's a simple task that can save you some time before trying more complex approaches.