Howdy, Stranger!

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

Supported by

Unable to use PsychoPy display with PyGaze-0.6.0 on Windows

I have downloaded both the 0.5.1 and the 0.6.0 versions of PyGaze as portable WinPython environments from the PyGaze website. I am able to use the Pygame display (DISPTYPE = 'pygame') with both of them but I'm only able to use the Psychopy display (DISPTYPE = 'psychopy') with the 0.5.1 version.
When I try to run, for example, the simple_tracker_experiment (adjusted for my display dimensions and in dummy mode) with PyGaze 0.6.0, I get the following traceback (the paths were truncated):

Traceback (most recent call last):
    File "...\simple_tracker_experiment.py", line 17, in <module>
        disp = libscreen.Display()
    File "...\pygaze\display.py", line 45, in __init__
        self.__class__.__init__(self, **args)
    File "...\pygaze\_display\psychopydisplay.py", line 70, in __init__
        screen=self.screennr, units='pix')
    File "...\psychopy\visual\window.py", line 237, in __init__
        self.scrWidthCM = self.monitor.getWidth()
AttributeError: 'NoneType' object has no attribute 'getWidth'

I have tried to find the cause of this behaviour but without success. Any help will be much appreciated.
I would like to be able to use the newer version because I'm working with a Tobii eye-tracker and I would like to take advantage of the new Tobii Pro SDK support.

My thanks in advance!
And my gratitude to Edwin and the contributors for such a useful package!

Best regards,
Bruno

Comments

  • Forgot to mention that the previous traceback is preceded by:

    FreeType import Failed: expected string or Unicode object, NoneType found
    2.8495  WARNING         Creating new monitor...
    
  • Hi Bruno,

    I never used pygaze directly but only as plugin in Opensesame. There I have run quite a few eyetracking experiments with psychopy as backend. If you want to switch to Opensesame, using pygaze, I could be of bigger help for you.

    sorry,
    Eduard

    Buy Me A Coffee

  • Hi Eduard,
    Thank you for your response!

    I didn't identify the root cause of the problem but I think that I found a solution.
    I updated the PsychoPy version in the portable WinPython-PyGaze-0.6.0 environment (that I downloaded from PyGaze website) from version 1.80.06 to version 1.82.01 (the one that OpenSesame standalone comes with) and now it works.

    I actually have already built my experiment in OpenSesame.
    The thing is that I would like to take advantage of the new Tobii Pro SDK support, recently added to PyGaze.
    Using PyGaze directly, I've been able to use both the old (TRACKERTYPE = 'tobii-legacy') and the new (TRACKERTYPE = 'tobii') Tobii SDKs (up until this problem was solved, only with DISPTYPE = 'pygame').
    To use the new Tobii SDK in OpenSesame, I updated the version of PyGaze in OpenSesame environment to match the latest changes in PyGaze's GitHub repository, installed both the old and the new Tobii SDKs and updated OpenSesame plugins for PyGaze (so that the tobii-legacy option appears in pygaze_init).
    While both the legacy and the new option seem to run in OpenSesame, I'm getting some unexpected behaviour with the new one:
    1. The track status box at the start of the calibration process is much less responsive in OpenSesame than in PyGaze alone and sometimes freezes completely;
    2. The letters and the calibration points cannot be seen if the background colour is set to white; and
    3. The experiment lags for seconds on keyboard responses (with the tobii-legacy support there is no noticeable lag on keyboard responses).
    (Probably I should report these issues on a new discussion or create an issue on the GitHub repository!?)

    Since I'm very pressed for time, I'm rewriting the experiment in PyGaze alone to see if I can use the new Tobii SDK support while bypassing these weird behaviours.

    Do you happen to have any experience using OpenSesame with Tobii eye-trackers?
    If so, what do you use to process the raw data?

    Thank you, Eduard,
    Best regards,
    Bruno

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