Thanks for the stack trace.
You could pipe the log output to a file in case your terminal gets flooded.
That being said, if the posted error is the first one, I would assume that a stale build is creating this issue.
Could you clean the build and update the submodules before trying to rebuild?
python setup.py clean
git submodule update --init --recursive
python setup.py install 2>&1 | tee install.log