The mouse positions of mouse gaze are always zero


I used the same code as here:
But, I get only “zero” for the positions. I also added a window using the code below:

win = visual.Window(allowGUI=True, monitor=‘testMonitor’, units=‘deg’, screen=1, color=(-0.2, -0.2, -0.2), fullscr=True)

but I am still getting zero positions. I think the window (from visual.Window) or the screen should be defined somewhere in mousegaze functions.
Note, the same code, but for the eyelink eytracker works. Using eyelink I get the eye positions.

I would be thankful for your help.