psychopy / psychopy

For running psychology and neuroscience experiments
http://www.psychopy.org
GNU General Public License v3.0
1.7k stars 912 forks source link

[Bug]: KeyError: 'GazePoint' #6872

Open Whami007 opened 2 months ago

Whami007 commented 2 months ago

PsychoPy Version

2024.2.1

What OS are your PsychoPy running on?

Windows 11

Bug Description

I tried to run an experiment that uses a GazePoint eye tracker and I received a "Please send the report under "Details" to the developers with a description of what you were doing with the software when the error occurred". Here is the copied error message:

Traceback (most recent call last): File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py", line 1389, in runFile self.app.runner.panel.runLocal(event) File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\runner\runner.py", line 642, in runLocal generateScript( File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py", line 83, in generateScript compileScript(infile=exp, version=None, outfile=outfile) File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py", line 221, in compileScript _makeTarget(thisExp, outfile, targetOutput) File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py", line 201, in _makeTarget script = thisExp.writeScript(outfile, target=targetOutput) File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py", line 323, in writeScript self_copy.settings.writeDevicesCode(script) File "C:\Users\BIKELAB\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\experiment\components\settings__init__.py", line 1436, in writeDevicesCode inits['eyetracker'].val = ioDeviceMap[inits['eyetracker'].val] KeyError: 'GazePoint'

Expected Behaviour

The experiment should have started and then went into the calibration routine for the eye tracker. I have the GazePoint plugin installed, directly after the welcome screen are the calibration and validation routines, in this order, and GazePoint control is running in the background and the eye tracker is on.

Steps to Reproduce

1.Installed GazePoint plugin 2.Checked to ensure I was running the latest version using a pip command

  1. Turned on GazePoint control and ensured eyetracker was on
  2. Added calibration and validation routines to my timeline
    1. Clicked run experiment and this is when I got the unhandled internal error message ...

Additional context

No response

peircej commented 2 months ago

Hi @Whami007 we fee;l like this was fixed in a previous release of the plugin. Could you check you have the latest version of that by uninstalling and reinstalling it please? You can now uninstall from the plugins dialog

peircej commented 2 months ago

The history of that plugin is here, including the fixes you need (we think): https://github.com/psychopy/psychopy-eyetracker-gazepoint/commits/main/ And that was released a month ago 👍

Whami007 commented 1 month ago

Hi @peircej, after reinstalling the plugin and making all the changes noted in the Github post you pointed me too, I am still having issues integrating the eyetracker. From my posts on PsychoPy's forum it seems like there are other users having the same issues, with gazepoint as well as tobii. Here is the link https://discourse.psychopy.org/t/integrating-gazepoint-eyetracker/41439 I also had my university's IT services come by and they chalked it up to something the developer would have to fix. I'm sure you all are very busy over there, but if you have the chance to check this out it would be greatly appreciated. Much thanks.