Sorry about the typo. Since the tutorial was published we changed the definition of the ElectrostaticDifferencePotential class to be specified in V, not eV, as is appropriate for a "potential".
Thus, all you need to do is change line 51 (which the error message complains about) to
vv = -v_z[index].inUnitsOf(V)
There was also a sign change involved, I recall, hence the leading minus sign.