Hello,
I have been trying to find the best Python-based coding method to run an experiment requiring audio and visual syncing. My hope was to use psychopy from the display pc (laptop) to display visuals, drive audio output and recording, and communicate with an Eyelink eye tracker device and its host computer.
Getting a python version on an Apple M4 to do this has been pretty difficult. I hit two errors.
I used Python 3.10 because it says it seemed to have the best Mac (running Tahoe, also tried Sequoia) compatibility with Eyelink 1000 Plus (also tried 3.11, 3.12).
-
I tried installing everything with Psychtoolbox after downloading the Eyelink developer, using the arm Mac pylink download then downloading Psychtoolbox as part of a virtual environment. I got in a loop where I was asked to repeatedly use brew install for libusb and to link it and to point to the path, but it did not work. The code error said that PsychHID compiled and could not find the libusb_bulk_transfer.
-
I did the install again in 3.10 in a new environment, and I was trying to use psychopy without Psychtoolbox. The visual task ran, and I tried to point psychopy.prefs to other audio libraries like pygame, or sounddevices. I used prefs.general and prefs.hardware, and nothing worked. I saw that after a psychtoolbox install and uninstall there was another error: File
"/opt/miniconda3/envs/eyelink_env/lib/python3.10/site-packages/psychopy/hardware/speaker.py", line 14, in <module>
import psychtoolbox.audio as ptb[/color][/font][/size]
ModuleNotFoundError: No module named 'psychtoolbox'
I am open to editing something like in 2 but it seems like core code for psychopy.
Again the goal is to drive audio and visual and be able to talk to the Eyelink while keeping time syncing. Any recommendations or solutions would be so appreciated.