pupil-labs / psychopy-gaze-contingent-demo

0 stars 1 forks source link

Tags not recognized #1

Open qian-chu opened 3 months ago

qian-chu commented 3 months ago

I'm trying to run the demo but met the following error:

    Pre_trial_FixateComponents = [Fixation_Cross, Fixation_AOI, gaze_indicator_pre, tag_0_pre, tag_1_pre, tag_2_pre, tag_3_pre]
NameError: name 'tag_0_pre' is not defined

In the builder, the tags appear as unrecognized components image In the compiled last_run.py, the tags were also ignored

  # Unknown component ignored: tag_0_pre

  # Unknown component ignored: tag_1_pre

  # Unknown component ignored: tag_2_pre

  # Unknown component ignored: tag_3_pre
domstoppable commented 3 months ago

You will need to install and enable the psychopy-eyetracker-pupil-labs plugin, but it's not currently working on all operating systems. We're working with the PsychoPy team to resolve the issue - please stay tuned.

qian-chu commented 3 months ago

You will need to install and enable the psychopy-eyetracker-pupil-labs plugin, but it's not currently working on all operating systems. We're working with the PsychoPy team to resolve the issue - please stay tuned.

Hi Dominic, thank you for the quick reply. I can confirm I already installed the plugin but still experience the error. FYI my OS is Windows 10 and PsychoPy version is 2024.1.4. Hope the information is helpful in troubleshooting.

domstoppable commented 3 months ago

It may be working ok on Windows 10, but in addition to installing the plugin you have to be sure is added as a startup plugin in the preferences, then close and restart PsychoPy Builder after that.

Between closing and restarting PsychoPy after checking the preference, you may need a fresh version of the demo. I seem to remember PsychoPy disabling or otherwise modifying components that aren't recognized.

cantonsir commented 2 weeks ago

Same problem, I am sure the plugin is added as a startup plugin in the preferences.

domstoppable commented 2 weeks ago

Hi, @cantonsir - there are currently some issues with PsychoPy's plugin system. Patches have been submitted but not yet accepted by the PsychoPy team. If you're using the latest standalone version of PsychoPy, I suggest uninstalling the plugin, then building a wheel from my fork, and installing that instead. Use the following:

git clone https://github.com/pupil-labs/psychopy-eyetracker-pupil-labs
cd psychopy-eyetracker-pupil-labs
python3 -m venv .venv
source .venv/bin/activate
pip install build
python -m build

This will create a dist/ folder, and you will find the .whl file in there.