Exception Type error when I run my experiment
Good afternoon everyone,
I finished creating my experiment and when I try to run it I end up getting an error message. The message is as follows
If you can guide me on how to fix this or where to look for the problem within the code that will be great. For reference the computer specs that I am using are:
OS: Windows Vista Business
OpenSesame version 2.9.7
Any guidance that you can give me towards this problem would be extremely appreciated.
Thank you
Comments
Hi @twininator2,
If you developed your task testing it as you went and you recently got that error, chances are that it relates to some of the last changes to made to the task.
As the error message suggests, the error is occurring on line 245 of your script. Have you checked what appears on that line? The error message suggests that you tried to subtract a value from a variable from which a numerical value can't be subtracted. I believe the problem may be that you're trying to subtract a value from a string variable. If you have a numerical values stored into a string variable, you can try convert it into a integer using the
int()function. Alternatively, it may be that your string variable should have been a numerical one to start with (in which case you should modify the code creating that variable to make it numerical rather than string).Good luck,
Fabrice.
PS: A useful tip when confronted with an error message is to copy that error message in Google. It usually throws out useful pages where people describe or solve that problem.