I’m trying to add a microphone component on the timeline, but the error stops me from doing this.
OS (e.g. Win10): MBP macos Sonoma 14.5
PsychoPy version (e.g. 1.84.x): 2024.1.1
Standard Standalone? (y/n) N If not then what?: python3.8.10, pip install psychopy==2024.1.1
What are you trying to achieve?:
Add microphone component
What did you try to make it work?:
None
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
Error message:
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/builder.py”, line 2882, in onClick
dlg = _Dlg(frame=self.parent.frame,
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/init.py”, line 1840, in init
_BaseParamsDlg.init(self, frame=frame, element=element, experiment=experiment,
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/init.py”, line 898, in init
self.ctrls = ParamNotebook(self, element, experiment)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/init.py”, line 739, in init
page = self.CategoryPage(self, self.parent, params, categ=categ)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/init.py”, line 590, in init
self.addParam(name, param)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/init.py”, line 598, in addParam
self.ctrls[name] = ParamCtrls(self.dlg, param.label, param, self, name)
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/init.py”, line 159, in init
self.valueCtrl = paramCtrls.ChoiceCtrl(
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/paramCtrls.py”, line 340, in init
self.populate()
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/app/builder/dialogs/paramCtrls.py”, line 347, in populate
choices = self._choices()
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/experiment/components/microphone/init.py”, line 92, in getDeviceIndices
from psychopy.hardware.microphone import MicrophoneDevice
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychopy/hardware/microphone.py”, line 5, in
from psychtoolbox import audio as audio
File “/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychtoolbox/init.py”, line 28, in
from .PsychHID import PsychHID
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/psychtoolbox/PsychHID.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace ‘_AllocateHIDObjectFromIOHIDDeviceRef’
Thank you so much for helping!