OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 1.85
Standard Standalone? (y/n) If not then what?: Y
What are you trying to achieve?: Running a gaze following task - worked with my other computer (Win7 with PsychPy 1.84.2), but not in this computer
What specifically went wrong when you tried that?: experiment does not run, simply grey screen appears then error message
Further to my last post, I’ve just tried another machine (PsychoPy 1.85.4 on a Macbook), and this time I’ve got another error message. It’s an “OSError”:
As the error indicates, you have a string representation of a tuple '(-10, 0)', which you need to convert into an actual tuple (-10, 0), such as by using the eval() function.
PsychoPy does its best to import numbers from conditions files, but you presumably have cells in that file containing (-10, 0). Since that contains non-numeric characters, PsychoPy can’t mind-read what is intended, and so imports it as a character string. You then have the responsibility to convert it into the appropriate class as required, e.g.
image_3.setPos(eval(posit))
You could avoid this by splitting the two coordinates into separate columns (say x and y), and then specify things like this:
I wish I could read error message. The original script was written by someone else; I am new to PsychoPy (and to programming), so I just modified it a little without knowing what made it work. As I said, it did work with my old machine and old laptop (both with older version of PsychoPy installed).
Would you be so kind to tell me what this OSError is and how to get around it? You have been super helpful; you actually told me how to changed the script for the ValueError. But I most likely need to run the task on my Macbook as well, so I would really could use your help.
Sorry, I don’t really understand that error. It doesn’t really appear to be an issue related to your particular experiment code, though. It looks like more of an issue with the PsychoPy installation itself. It might be worth you installing 1.85.6 from here: Releases · psychopy/psychopy · GitHub as that had a few bug fixes in it.