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:47PM

    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:47PM

    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:47PM

    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:47PM

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

  • edited 6:47PM

    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.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games