Psychopy version: 2023.1.0
Mac version: Mac OS Ventura 13.1
Good morning, everyone,
I have been trying to use psychopy for a couple of days now but with little success. I must say that I have little experience with the software but trying to follow a tutorial on YouTube I tried to insert a couple of trials into the psychopy timeline but at the moment of execution a series of errors emerge which I cannot resolve:
Generating PsychoPy script…
Running: /Users/biagioscalingi/Documents/Psychopy Experiments/Prove/Prova 1_lastrun.py
187.2185 INFO Loaded monitor calibration from [‘2023_02_17 11:05’]
2023-02-17 15:46:54.459 python[3016:40218] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/_4/w6p2gq1905745r1vz8n02ph00000gn/T/org.opensciencetools.psychopy.savedState
Error during device creation …
Traceback (most recent call last):
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/server.py”, line 708, in createNewMonitoredDevice
dev_data = self.addDeviceToMonitor(dev_cls_name, dev_conf)
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/server.py”, line 874, in addDeviceToMonitor
dev_instance = DeviceClass(dconfig=dev_conf)
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/devices/display/_init.py”, line 60, in _init
self._addRuntimeInfoToDisplayConfig()
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/devices/display/init.py”, line 529, in _addRuntimeInfoToDisplayConfig
self._createPsychopyCalibrationFile()
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/devices/display/init.py”, line 726, in _createPsychopyCalibrationFile
‘surface_center’] = psychoMonitor.getDistance() * 10.0
TypeError: unsupported operand type(s) for *: ‘NoneType’ and ‘float’
Error during device creation …
Traceback (most recent call last):
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/server.py”, line 708, in createNewMonitoredDevice
dev_data = self.addDeviceToMonitor(dev_cls_name, dev_conf)
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/server.py”, line 874, in addDeviceToMonitor
dev_instance = DeviceClass(dconfig=dev_conf)
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/devices/display/_init.py”, line 60, in _init
self._addRuntimeInfoToDisplayConfig()
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/devices/display/init.py”, line 529, in _addRuntimeInfoToDisplayConfig
self._createPsychopyCalibrationFile()
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/devices/display/init.py”, line 726, in _createPsychopyCalibrationFile
‘surface_center’] = psychoMonitor.getDistance() * 10.0
TypeError: unsupported operand type(s) for *: ‘NoneType’ and ‘float’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/server.py”, line 642, in _addDevices
self.createNewMonitoredDevice(dev_cls_name, dev_conf)
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/server.py”, line 721, in createNewMonitoredDevice
raise ioHubError(‘Error during device creation …’)
psychopy.iohub.errors.ioHubError: ioHubError:
Args: (‘Error during device creation …’,)
GET_DEV_INTERFACE_ERROR: _getRPCInterface returned: None
GET_DEV_INTERFACE_ERROR: _getRPCInterface returned: None
GET_DEV_INTERFACE_ERROR: _getRPCInterface returned: None
_addDeviceView: Error adding class.
GET_DEV_INTERFACE_ERROR: _getRPCInterface returned: None
6.6198 WARNING Couldn’t measure a consistent frame rate!
Traceback (most recent call last):
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/client/init.py”, line 1098, in _addDeviceView
d = local_class(self, dev_cls_name, dev_config)
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/client/keyboard.py”, line 205, in init
self._reporting = self.isReportingEvents()
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/iohub/client/_init.py”, line 153, in _getattr
raise AttributeError(self, name)
AttributeError: (<psychopy.iohub.client.keyboard.Keyboard object at 0x7f9ddb772c70>, ‘isReportingEvents’)
Traceback (most recent call last):
File “/Users/biagioscalingi/Documents/Psychopy Experiments/Prove/Prova 1_lastrun.py”, line 158, in
if endExpNow or defaultKeyboard.getKeys(keyList=[“escape”]):
File “/Volumes/PsychoPy-2022.2.1/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/hardware/keyboard.py”, line 310, in getKeys
key_events = Keyboard._iohubKeyboard.getReleases(keys=watchForKeys, clear=clear)
AttributeError: ‘NoneType’ object has no attribute ‘getReleases’
################# Experiment ended with exit code 1 [pid:3016] #################
I have tried changing the size of the Psychopy window, allowing Psychopy accessibility on the Mac from the system preferences, downloading the latest version (2022.2.5) but I don’t know what to do anymore. In addition, the following messages appear when I close the software:
I hope I have not put relevant information and that someone can help me.
Thank you