Think Bayes example cannot sample from observed data

I think it’s probably because you are setting a random variable as observations. To my knowledge that’s not supported (Random variable as observation)