Hello
Which PsychoPy-version are you using? There was a bug in some PsychoPy-versions, see here.
Best wishes Jens