Howdy, Stranger!

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

Supported by

[solved] video error: arg 1 must be...

edited January 2014 in OpenSesame

Dear Forum
I was trying open sesame 0.26 on winXP for video display. a bug reported that arg1 must be a string or a file.
any Ideas?
thanks, yuval

Comments

  • edited 6:02AM

    Hi Yuval,

    Could you provide some more details? What exactly are you trying to do, and when do you get the error? Please also provide the full error message. You can usually find the full traceback (error log) in the debug window.

    Cheers,
    Sebastiaan

  • edited April 2012

    thanks for the quick response Sebastiaan
    OK, here it is all.
    I have the simplest experiment, just one wellcome display and one video display in the main sequence of the experiment.
    I am just trying to see that it works before building a whole experiment.

    Error message:
    Error: Runtime error
    Description: Error while executing event handling code: exec: arg 1 must be a string, file, or code object

    debug window message:

    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 512
    openexp._canvas.legacy.init_display(): enabling hardware surface
    openexp._canvas.legacy.init_display(): enabling double buffering
    openexp._canvas.legacy.init_display(): video mode ok
    experiment.init_log(): using 'C:/Documents and Settings/STIM/My Documents/My Experiments/tests/subject-0.csv' as logfile (ascii)
    experiment.run(): experiment started at Wed Apr 18 11:51:48 2012
    Starting video playback

    video script:

    set fullscreen "yes"
    set sendInfoToEyelink "yes"
    set event_handler_trigger "after every frame"
    set event_handler ""
    set video_src "cup_NarrowR.avi"
    set audioCorrection "150000"
    set duration "keypress"
    set playaudio "yes"
    set description "Plays a video from file"

    thanks
    Yuval

  • edited 6:02AM

    Ok, I see. I'm not able to reproduce this problem: The video plays just fine for me. Are you running the latest OpenSesame (0.26, not one of the pre-releases) with the media_player plug-in (not media_player_vlc)? And are you using the official OpenSesame package for Windows, or have you installed it in some other way?

    If not, please install the latest stable OpenSesame package. If you have already done that, I'm not sure what the problem could be... In that case I'll pass this on to Daniel, the media_player developer. But he's on a holiday at the moment, so that will take a few days.

  • edited 6:02AM

    I downloaded the 0.26 this morning from the common dowloads, the video player plugin came with the pack as it is the windows package. I did not install the software but rather ran it from the directory, I can try the installation exe as well.
    thanks, yuval

  • edited 6:02AM

    Your installation is fine then. We'll get back to you on this!

  • edited 6:02AM

    Did you try running OpenSesame on another machine and see if the problem also occurs there? From the error message you provided, it seems the problem lies in the section in which you can insert custom code to handle events like keypresses. Is the text area in which you can insert this custom code empty, or did you put somehing here? Also, what is the value of the field "Call Custom Python Code" of the plugin?

    Buy Me A Coffee

Sign In or Register to comment.