Welcome!
I do not receive the error you describe when I run your code. I do receive the warning about requesting less than 1 posterior predictive sample than there are samples in the trace (thrown by the call to sample_posterior_predictive()), but that’s separate. What version of pymc are you running?