It appears that TPT's latest commit (https://github.com/simtr/The-Powder-Toy/commit/eea006ad6f63083782a3decda51b6bf80caa47af) causes Python errors, and I can not build TPT again with that commit merged. Please reset.
Sorry I couldn't, I tried scons.py>>result.txt but all the errors did not go to result.txt.
That is because you tried to take the stdout stream and stick it in a file. You want the stderr stream.
scons.py >> result.txt 2>&1