Howdy, Stranger!

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

Supported by

Problems running Pygaze

edited July 2016 in OpenSesame

Hi.

I'm on a Mac, and I'm trying to use the eye-tracker template supplied with OpenSesame (with and EyeTribe eye tracker). I keep getting the error "ImportError: No module named pygaze_drift_correct".

I can confirm that pygaze_drift_correct.py is currently installed to my plugins folder (/Applications/OpenSesame.app/Contents/Resources/plugins/opensesame_plugins). I can also confirm that the pygaze folder (downloaded from https://github.com/esdalmaijer/PyGaze) is in my Python folder (/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/)

Any help greatly appreciated.

Comments

  • edited 8:48PM

    Hi Nick,

    which version of OpenSesame are you using?

    Buy Me A Coffee

  • edited 8:48PM

    Hi

    I've just downloaded the latest version (and added PyGaze to the Python path). Now it seems to find PyGaze. But it doesn't find Numpy.

    What I'm really confused about is how to integrate Open Sesame with Python. Macs come with a native python (2.6 and 2.7) but this is quite difficult to update. Moreover, the Pygaze website recommends Enthought python (2.7, 32 bit). So I downloaded Enthought python and installed all the relevant packages using the Enthought package manager, including Numpy. This is the default version of python as it starts when when I type "python" in the shell. However, OpenSesame seems to be using the native python.

    Is there a way to instruct OpenSesame to use a particular version of Python? Or do I need to install OpenSesame via python in order to achieve this?

    Many thanks

    Nick

  • edited 8:48PM

    Hi Nick,

    The official OpenSesame packages for Windows and Mac OS come with their own Python environment, which is completely separate from any other Python environments that you might have on your system. So you need to update PyGaze within OpenSesame's environment, which is located within the app. How this works exactly depends on which version of OpenSesame you're using, hence @dschreij's question--which you didn't answer!

    You can also install OpenSesame as a package into an existing Python environment:

    pip install python-opensesame
    

    See also:

    Cheers,
    Sebastiaan

  • edited 8:48PM

    Sorry, I'd mentioned that it was the latest version, but hadn't supplied the version number. It's 3.1.0 Jazzy James.

    Do you know how I can add packages to the open sesame python environment? By the debug window?

    Thanks

    Nick

  • edited July 2016

    Hi Nick,

    yes that is certainly possible! Check this page on the documentation site: http://osdoc.cogsci.nl/3.1/manual/environment/.
    Basically, you should be able to execute this command from OpenSesame's debug window:

    import pip
    pip.main(['install', 'python-pygaze'])
    pip.main(['install', 'opensesame-plugins-pygaze'])
    

    You probably also need to append the "--upgrade" flag as an extra list item for these commands as you already have previous versions of these packages installed.

    Buy Me A Coffee

  • edited 8:48PM

    That's indeed how you can upgrade packages in OpenSesame. There's no updated version for python-pygaze yet though, because we're still working out some kinks with EyeTribe calibration, as discussed here. Once these have been resolved, I'll push an update to python-pygaze.

  • edited 8:48PM

    Thanks. This is really helpful.

    Nick

  • edited 8:48PM

    I just updated PyGaze to 0.6.0a16, which includes the fixes for calibration with the EyeTribe. You can upgrade by running the following in the debug window (so it's actually slightly different from @dschreij's post):

    import pip
    pip.main(['install', 'python-pygaze', '--upgrade'])
    
  • Hi. I can confirm that the EyeTribe tracker is now working perfectly with the latest version of Open Sesame (Jazzy James). Thanks for help.

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