Howdy, Stranger!

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

Supported by

Silencing Error Messages?

edited February 2016 in OpenSesame

Hello,

Just updated to Opensesame 3.0 and loving it so far. Thank you for offering free and powerful experiment software!

Recently, I have been getting an error message after experiments that reads in the opensesamerun.exe.log:

Opensesame\libopensesame\var_store.py:198: UserWarning: var fullscreen is stored as attribute of item Experiment

The experiment runs fine, and data is logged. However, when I run experiments back-to-back this error message disrupts the flow and confuses participants. Is there any way to remedy the issue or at least silence the error message from popping up after the experiment closes?

Thanks,
Dan

Comments

  • edited February 2016

    Hi Dan,

    I don't really know if you can supress these error messages. OpenSesame is packaged with py2exe which causes this behavior, see http://www.py2exe.org/index.cgi/StderrLog and http://stackoverflow.com/questions/20549843/py2exe-generate-log-file. These links provide a solution to your problem, but I don't know if it will work in OpenSesame, as it already does a lot of output rerouting on its own.

    There might be simpler solution. The error relates to fullscreen being stored in th var object. If you delete this variable somewhere at the end (and if that does not work, maybe already at the start) of your experiment by placing the line

    del var.fullscreen
    

    in an inline_script item. Maybe OpenSesame will no longer have a reason to throw this error message and you will also no longer get the error log notification.

    Buy Me A Coffee

  • edited 1:41PM

    Hi,

    Thanks for pointing this one out. What happens is that opensesamerun still uses the old way of setting variables—which it shouldn't. This is harmless, but triggers a warning. What you could do is add the following line to the top of your experimental script:

    set fullscreen 1
    

    This will set the fullscreen variable the right way, and should suppress the warning.

    Cheers!
    Sebastiaan

Sign In or Register to comment.