In reply to dip0:
The original poster never came back with a response to what their problem was - there are many different reasons that you could be getting this error. I suspect your problem is different, but showing us the code would help a lot.
I suspect you are connecting a sequencer and driver and have not parameterized them with the same sequence_item class.