Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Run error with rating scale function when using opensesameportable (direct run.bat)

edited May 2014 in OpenSesame

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

  • edited May 2014

    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

  • edited 2:55AM

    Thanks! The new version solved my problem. Just did't know that WinPython includes the portable package.

    Antonie

  • edited May 2014

    Excellent! More information on the portable packages can be found here (for future reference).

Sign In or Register to comment.