psychopy / psychopy

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

[Bug]: KeyError: 'GazePoint' #6872

Open Whami007 opened 6 days ago

Whami007 commented 6 days 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 4 days 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 4 days 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 👍