Thanks for the interest @nairbv
Myself I have extracted the few lines to another script to debug, and cannot reproduce the RunTimeError, while running my original script always crash at the first batch.