Failing to update old OS 2.9.7. scripts to OS 3.1+
I just wanted to move on from the older Open Sesame version (2.9.7) to the latest version (3.1.) and I figured a good way to start is to check out old scripts that worked flawless on the older OS version and see how they behave on the newest OS.
However, this process does not run very smoothly since I get errors that make little sense to me. For instance:
exception type: TypeError exception message: line() takes exactly 5 arguments (6 given)
...and it refers to this line:
exp.canvas.line(x+d, y, x, y+d, color)
exception type: TypeError exception message: circle() takes exactly 4 arguments (6 given)
referring to line:
exp.display.circle(x, y, size_circle, fill=False, color=stimulus['color'])
Looking in the OS documentation on either the line or circle function tells me that I am using the function correctly.
It is not quite clear what the mistake here can be other than that something has changed from OS 2.9.X to 3.1. Again, I emphasize, running an identical copy of the script in OS 2.9 does not cause any problems.
I am reluctant to start from scratch programming the same experiments by going thru the old code line by line, since some of my scripts are quite dense.
Does anyone have an idea what the problem could be ?
Is there any general change in the workflow of OS experiments, or maybe an overview about all changes in how to handle basic functions (e.g. canvas or inline functions) from the old 2.X compared to the new 3.X OS versions ?
Any help is appreciated! Thanks!
I should mention that I tested a super-simple version of the same code (i.e. simply drawing a line or circle) using the same style of coding I used in the old scripts with a separate OS 3.1. script. Then I do not receive these errors. So it seems that the code as such is not incorrect. What is happening??