[solved] Run error with rating scale function when using opensesameportable (direct run.bat)
Hello guys,
in my psychological experiment, I used a rating scale function to collect answers. The python lines was written as followed in inline_script item:
ratingScale1 = widgets.rating_scale(form, var='question1', nodes=['0','1', '2', '3','>3'], default=0)
Without the part "default=0", the experiment was run perfectly both with opensesame program and with RUN_ME.bat (with opensesameportable-0.27-1-win32).
While unfortunately when the default value was mentioned, run error comes with RUN_ME.bat, but nothing goes wrong in opensesame program.
Error report:
Traceback (most recent call last):
File "C:\Users\Edwin\Documents\opensesameportable\versions\opensesameportable-0.27.1-1-win32\opensesame-0.27.1\libopensesame\inline_script.py", line 129, in run File "", line 18, in
TypeError: init() got an unexpected keyword argument 'default'
Sincerely hope for your help.
Antonie
Comments
Hi Antonie,
You're using an older version of the portable package (0.27.1). If you download a newer version (see under WinPython, either 0.27.3 or 2.8.1), does the problem persist?
Thanks,
Edwin
Thanks! The new version solved my problem. Just did't know that WinPython includes the portable package.
Antonie
Excellent! More information on the portable packages can be found here (for future reference).