ValueError: conflicting sizes for dimension 'chain': length 1 on the data but length 2 on coordinate 'chain'

Can you provide the code you are using and the (full) error messages you are getting?