Thanks for reporting. I can see that pycapnp might be a problem because it requires installation of the Capnproto C++ library.
You might have more than one
gcc compiler installed, and the pycapnp build is picking up the wrong one. Try setting the following environment variables:
Also, confirm that
gxx --version returns the version you expect.