| Reference | Downloads | Github

TypeError: unsupported operand type(s) for -: 'float' and 'function'

Hi!I am a beginner of psychopy. Sincerely need you help!

I have no idea about this error. Is it somthing wrong with the ‘-’? How can I fix it?

thank you so so so much!

Hi @11111, would you mind sharing the task which is causing the error?

pre-experiment.psyexp (40.9 KB) practiceBlock.xlsx (8.7 KB)

thanks a lot!

Hi, not sure if you are meaning to use “deg” as your screen units, but perhaps this is causing the error. Go to experiment settings, and the “Screen” tab, and select “norm” from the “Units” drop down menu.


I tried that. but here comes another error. can you help me again ? thank you so much !

@11111, thats for the information. That is not actually an error, just a warning. If you only see a white screen, it is because your window color is white, and your text color is white, so you cannot see anything. In Experiment Settings, go to the Screen tab, and change the color to $[0, 0, 0].

It works! Thank you !