cx_Freeze error: baseline image directory does not exist
My original answer: https://github.com/marcelotduarte/cx_Freeze/issues/692#issuecomment-657125847
I have already identified the source of this problem, it is the patch 7ec3eaa.
Using the matplot sample, I see an issue with numpy 1.18.3 to 1.19 and pillow 7.x, and I'm investigating.
For now, it has a workaround.
pip install "numpy<1.18.3" "pillow<7"
To build add ["matplotlib.tests", "numpy.random._examples"] to excludes or build with:
python setup.py build_exe --excludes=matplotlib.tests,numpy.random._examples
If you have a "excludes" in your setup.py, add the two excluded modules int it, options in setup is exclusive.
Downgrading cx_freeze from version 6.2 to 6.1 made this error message go away. Now I have another error when running the executable: No module named mpl_toolkits.
I will edit my answer when I know more. I just wanted to answer right away, so you know someone else is having the same problem. :)