and a complaint that the gas valve doesn't turn on.

Assuming the wiring and everything else is good and without knowing anything else or making any measurements, what are the odds that it's the thermopile?