Howdy, Stranger!

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

Supported by

[open] Eye-tracking lab (running OpenSesame from source for EyeLink compatibility)

edited March 2014 in OpenSesame

Dear all,

I am trying to set up Opensesame in our eye-tracking lab. I have installed version 0.27 Frisky Freud on a Windows 7 system. I have also completed these instructions:
http://osdoc.cogsci.nl/devices/eyelink/
However, the last command

c:\Python26\python.exe opensesame --pylink

does not work. It gives the error:
"opensesame not found"

Any ideas how to fix this?

Comments

  • edited 1:52PM

    Hi Katerina,

    You need to either specify the full path to opensesame or run this command from the folder that contains opensesame. Otherwise Windows won't find the file. Perhaps the easiest way to do this is to create a so-called Batch file in the OpenSesame folder (let's call it run_opensesame.bat) that contains the following command:

    c:\Python26\python.exe opensesame --pylink
    

    If the batch file is in the same folder as opensesame itself, this should work.

    Cheers!
    Sebastiaan

  • edited 1:52PM

    I have tried to run it from the same directory where open sesame is and it didn't work.
    I will try the batch option, thank you!

    Cheers,
    Katerina

  • edited 1:52PM

    Dear Sebastian,

    the batch option didn't work either. I cannot think why it does not find opensesame. Any other ideas?

    Cheers,
    Katerina

  • edited March 2014

    Hi Katerina,

    Two stupid questions, to confirm that you've done what I think you've done:

    1) Have you installed OpenSesame's source, or have you used the installer?

    2) Is your batch file located in the OpenSesame directory, where the file opensesame is located? If not: move your batch file to the folder containing both opensesame and opensesamerun, and you should be fine.

    Another solution would be to include the full path to OpenSesame in the batch file. In the example below, we assume you have a folder called opensesame, in which the script opensesame is located.

    "C:\Python26\python.exe" "C:\opensesame\opensesame" --pylink
    

    Thanks!

    Edwin

  • edited 1:52PM

    Dear Edwin,

    Answers to your questions:
    1) yes, source with SDL.
    2) yes both in same directory.

    I have tried all the solutions you have suggested and the error I get is:
    File "opensesame.bat", line 1
    c:\Python27\python.exe opensesame
    ^
    SyntaxError: invalid syntax

    I really do not understand where the problem lies. Any ideas?

    Best,
    Katerina

  • edited 1:52PM

    We now modified the batch file command into:
    "c:\Python27\python.exe" "opensesame.exe"
    then it gives no error. But it does not do anything, or at least it does not start opensesame.

    I would be very thankful for any input on this.

    Cheers,
    Katerina

  • edited 1:52PM

    Dear Katerina,

    What are you using to run the batch file? The error looks like a Python error, whereas a batch file is Windows coding. That is: you can simply double-click it, and it should open a command prompt in which all the commands that are in your batch file are run.

    Best,

    Edwin

  • edited June 2014

    Hi guys,
    I want to use the eye-tracker plug in for my experiment too (it consists of a unique inline_script, and I use Psychopy backend).
    I tried the Python portable version but when I open the experiment it does not recognize pieces of script as self.time() or win.flip()
    The error is: self is undefined, win is undefined.
    What could be the solution?

    Then I moved to Opensesame running from source, but I'm stuck in the first step.
    Can anybody explain in full details how to do the first step? Those few lines in the documentation area are not clear to me.

    Thanks, Ambra

  • edited 1:52PM

    Hi Ambra,

    Do you mean that the script editor tells you that the variables are undefined, or does an actual error occur? In principle, the code should run as long as you use the psycho back-end, regardless of the warning messages in the inline_script editor.

    To run from source, download all the packages listed on this page (under Dependencies). Click on the links, go to the Download pages (if the link does not direct you to a download page immediately), and download the correct version for your platform (e.g. Windows; also make sure to select the 32-bit version rather than the 64-bit version whenever you are provided with both options). Then run the downloaded installer.

    Good luck!

  • edited 1:52PM

    Hi Edwin,

    actually the Python portable version works even though I have these errors in the script editor.
    Today I tried it in my eye tracker lab, I wanted to see whether pyGaze was able to interface with the Eyelink 1000 we have. However, it did not.
    The Eyelink 1000 is now connected to the stimulation pc and the eyelink pc through a software called Track (ethernet connection). Do you think there could be interferences with this system? What would be the proper setup (how many pc, what connenction)?

    To run from source, do I have to download installers, not zip files, and then run the installers?

    Thanks, Ambra

  • edited 1:52PM

    Hi Edwin,

    I tried again to interface the Eyelink with OS through PyGaze, here you find more details on that. Could you help me?
    http://forum.cogsci.nl/index.php?p=/discussion/1008/open-unable-to-set-backdrop-in-eyelink-1000-using-os-portable-0-27-3/p1

    Thanks again, Ambra

  • edited 1:52PM

    Hi all,

    Think you will have to add .py in the batch file so it will look something like:
    c:\Python26\python.exe open sesame.py --pylink

    @ambraferrari: I just setup an lab with PyGaze and an EyeLink 1000 with no problems using this: http://osdoc.cogsci.nl/devices/eyelink/

    Best,
    Jarik

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