If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 2023.2.2
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?:
My lab has been trying to get an eye-tracking experiment to run. The experiment crashes on any eye-tracker components. I am fairly certain this is not an issue with the experiment itself but rather a problem at the level of PsychoPy interacting with the eye tracker (Tobii Pro Nano). The messages we get when trying to run the experiemetn are below. Some of them are about the cedrusBox component package, which doesnât make much sense because the experiment does not involve a cedrus component. However, from some of the other messages, it seems like experiment canât communicate with eye tracker because critical components (packages?) are missing.
503.9187 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
503.9313 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
503.9373 INFO Loaded monitor calibration from [â2020_11_05 15:33â]
503.9462 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
503.9556 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
C:\Program Files\PsychoPy\lib\site-packages\numpy_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas64__v0.3.21-gcc_10_3_0.dll
warnings.warn(âloaded more than 1 DLL from .libs:â
C:\Program Files\PsychoPy\lib\site-packages\scipy_init_.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.4
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
WARNING: pytables package not found. ioHub functionality will be disabled.
Hello from the pygame community. Contribute - pygame wiki
C:\Program Files\PsychoPy\lib\site-packages\numpy_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas64__v0.3.21-gcc_10_3_0.dll
warnings.warn(âloaded more than 1 DLL from .libs:â
WARNING: pytables package not found. ioHub functionality will be disabled.
C:\Program Files\PsychoPy\lib\site-packages\scipy_init_.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.4
addDeviceView: Error adding class.
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
Error during device creation âŚ
Traceback (most recent call last):
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.pyâ, line 715, in createNewMonitoredDevice
dev_data = self.addDeviceToMonitor(dev_cls_name, dev_conf)
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.pyâ, line 865, in addDeviceToMonitor
DeviceClass, dev_cls_name, evt_classes = import_device(dev_mod_pth,
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\devices_init.py", line 933, in import_device
device_class = getattr(module, device_class_name)
AttributeError: module âpsychopy.iohub.devices.eyetracker.hw.tobiiâ has no attribute âEyeTrackerâ
Error during device creation âŚ
Traceback (most recent call last):
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.pyâ, line 715, in createNewMonitoredDevice
dev_data = self.addDeviceToMonitor(dev_cls_name, dev_conf)
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.pyâ, line 865, in addDeviceToMonitor
DeviceClass, dev_cls_name, evt_classes = import_device(dev_mod_pth,
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\devices_init_.pyâ, line 933, in import_device
device_class = getattr(module, device_class_name)
AttributeError: module âpsychopy.iohub.devices.eyetracker.hw.tobiiâ has no attribute âEyeTrackerâ
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.pyâ, line 649, in _addDevices
self.createNewMonitoredDevice(dev_cls_name, dev_conf)
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.pyâ, line 728, in createNewMonitoredDevice
raise ioHubError(âError during device creation âŚâ)
psychopy.iohub.errors.ioHubError: ioHubError:
Args: (âError during device creation âŚâ,)
10.0665 EXP Created window1 = Window(allowGUI=True, allowStencil=False, autoLog=True, backendConf=UNKNOWN, backgroundFit=<method-wrapper âgetattributeâ of attributeSetter object at 0x0000025BEA40D400>, backgroundImage=<method-wrapper âgetattributeâ of attributeSetter object at 0x0000025BEA40D3A0>, bitsMode=UNKNOWN, blendMode=âavgâ, bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace=ârgbâ, depthBits=8, fullscr=<method-wrapper âgetattributeâ of attributeSetter object at 0x0000025BEA40D1C0>, gamma=None, gammaErrorPolicy=âraiseâ, lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000025BEF76F1F0>, multiSample=False, name=âwindow1â, numSamples=2, pos=(0, 0), screen=0, size=array([1680, 1050]), stencilBits=0, stereo=False, title=âPsychoPyâ, units=âheightâ, useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType=âpygletâ)
Traceback (most recent call last):
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client_init_.pyâ, line 1081, in addDeviceView
dev_import_result = import_device(dev_mod_pth, dev_cls_name)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\devices_init.py", line 933, in import_device
device_class = getattr(module, device_class_name)
AttributeError: module âpsychopy.iohub.devices.eyetracker.hw.tobiiâ has no attribute âEyeTrackerâ
Traceback (most recent call last):
10.0666 EXP window1: mouseVisible = True
10.0666 EXP window1: backgroundImage = ââ
10.0666 EXP window1: backgroundFit = ânoneâ
10.0679 EXP window1: Attempting to measure frame rate of screen (0) âŚ
10.0679 EXP window1: recordFrameIntervals = False
10.2331 EXP window1: recordFrameIntervals = True
10.4167 EXP Screen (0) actual frame rate measured at 59.93Hz
10.4167 EXP window1: recordFrameIntervals = False
10.4168 EXP window1: mouseVisible = False
13.2926 DEPRECATION The Tobii eyetracker requires package âpsychopy-eyetracker-tobiiâ to be installed. Please install this package and restart the session to enable support.
13.2949 EXP Pavlovian: status = STARTED
13.2953 EXP window1: mouseVisible = True
13.4721 EXP Created Instruct = TextStim(class=<class âpsychopy.visual.text.TextStimâ>, alignHoriz=method-wrapper(âŚ), alignText=âcenterâ, alignVert=method-wrapper(âŚ), anchorHoriz=âcenterâ, anchorVert=âcenterâ, antialias=True, autoDraw=False, autoLog=True, bold=False, color=array([1., 1., 1.]), colorSpace=ârgbâ, contrast=1.0, depth=0.0, draggable=False, flipHoriz=False, flipVert=False, font=âOpen Sansâ, fontFiles=, height=0.05, italic=False, languageStyle=âLTRâ, name=âInstructâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=str(âŚ), units=âheightâ, win=Window(âŚ), wrapWidth=1)
13.4722 EXP window1: mouseVisible = True
17.3345 EXP Created image = ImageStim(class=<class âpsychopy.visual.image.ImageStimâ>, anchor=(âcenterâ, âcenterâ), autoLog=True, color=array([1., 1., 1.]), colorSpace=ârgbâ, contrast=1.0, depth=0.0, draggable=False, flipHoriz=False, flipVert=False, image=âsinglefix.JPGâ, interpolate=True, mask=None, maskParams=None, name=âimageâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), size=array([2., 1.]), texRes=128.0, units=âheightâ, win=Window(âŚ))
17.3346 EXP window1: mouseVisible = True
17.3484 EXP Created CS = ImageStim(class=<class âpsychopy.visual.image.ImageStimâ>, anchor=(âcenterâ, âcenterâ), autoLog=True, color=array([1., 1., 1.]), colorSpace=ârgbâ, contrast=1.0, depth=-1.0, draggable=False, flipHoriz=False, flipVert=False, image=âdefault.pngâ, interpolate=True, mask=None, maskParams=None, name=âCSâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), size=array([2., 1.]), texRes=128.0, units=âheightâ, win=Window(âŚ))
19.5497 EXP Sound sound_1 set volume 1.000
19.5498 EXP window1: mouseVisible = True
19.5622 EXP Created CS_feedback = ImageStim(class=<class âpsychopy.visual.image.ImageStimâ>, anchor=(âcenterâ, âcenterâ), autoLog=True, color=array([1., 1., 1.]), colorSpace=ârgbâ, contrast=1.0, depth=0.0, draggable=False, flipHoriz=False, flipVert=False, image=âdefault.pngâ, interpolate=True, mask=None, maskParams=None, name=âCS_feedbackâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), size=array([1.8, 1. ]), texRes=128.0, units=âheightâ, win=Window(âŚ))
19.5623 EXP window1: mouseVisible = True
19.5671 EXP Created earnings = TextStim(class=<class âpsychopy.visual.text.TextStimâ>, alignHoriz=method-wrapper(âŚ), alignText=âcenterâ, alignVert=method-wrapper(âŚ), anchorHoriz=âcenterâ, anchorVert=âcenterâ, antialias=True, autoDraw=False, autoLog=True, bold=False, color=array([1., 1., 1.]), colorSpace=ârgbâ, contrast=1.0, depth=0.0, draggable=False, flipHoriz=False, flipVert=False, font=âOpen Sansâ, fontFiles=, height=0.05, italic=False, languageStyle=âLTRâ, name=âearningsâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=âTotal dollars earned:â, units=âheightâ, win=Window(âŚ), wrapWidth=1)
19.5672 EXP window1: mouseVisible = True
19.5682 EXP Created total = TextStim(class=<class âpsychopy.visual.text.TextStimâ>, alignHoriz=method-wrapper(âŚ), alignText=âcenterâ, alignVert=method-wrapper(âŚ), anchorHoriz=âcenterâ, anchorVert=âcenterâ, antialias=True, autoDraw=False, autoLog=True, bold=False, color=array([1., 1., 1.]), colorSpace=ârgbâ, contrast=1.0, depth=-1.0, draggable=False, flipHoriz=False, flipVert=False, font=âOpen Sansâ, fontFiles=, height=0.05, italic=False, languageStyle=âLTRâ, name=âtotalâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), rgb=UNKNOWN, text=ââ, units=âheightâ, win=Window(âŚ), wrapWidth=1)
0.0220 EXP Instruct: autoDraw = True
2.5911 EXP window1: mouseVisible = True
2.5942 EXP Created calibrationTarget = ShapeStim(class=<class âpsychopy.visual.shape.ShapeStimâ>, anchor=(âcenterâ, âcenterâ), autoDraw=False, autoLog=True, closeShape=True, color=method-wrapper(âŚ), colorSpace=ârgbâ, contrast=None, depth=0, draggable=False, fillColor=array([0, 0, 0]), fillColorSpace=ârgbâ, fillRGB=array([0, 0, 0]), interpolate=True, lineColor=array([-1., -1., -1.]), lineColorSpace=ârgbâ, lineRGB=array([-1, -1, -1]), lineWidth=2.0, name=âcalibrationTargetâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), size=array([0.02, 0.02]), units=âheightâ, vertices=ndarray(âŚ), win=Window(âŚ), windingRule=None)
2.5944 EXP window1: mouseVisible = True
2.5973 EXP Created calibrationTargetInner = ShapeStim(class=<class âpsychopy.visual.shape.ShapeStimâ>, anchor=(âcenterâ, âcenterâ), autoDraw=False, autoLog=True, closeShape=True, color=method-wrapper(âŚ), colorSpace=ârgbâ, contrast=None, depth=0, draggable=False, fillColor=array([-1. , 0.00392157, -1. ]), fillColorSpace=ârgbâ, fillRGB=array([-1. , 0.00392157, -1. ]), interpolate=True, lineColor=array([-1., -1., -1.]), lineColorSpace=ârgbâ, lineRGB=array([-1, -1, -1]), lineWidth=2.0, name=âcalibrationTargetInnerâ, opacity=1.0, ori=0.0, pos=array([0., 0.]), size=array([0.007, 0.007]), units=âheightâ, vertices=ndarray(âŚ), win=Window(âŚ), windingRule=None)
2.6664 EXP window1: mouseVisible = True
1.5804 DEPRECATION The Tobii eyetracker requires package âpsychopy-eyetracker-tobiiâ to be installed. Please install this package and restart the session to enable support.
1.6985 WARNING Monitor specification not found. Creating a temporary oneâŚ
ioHub Server Process Completed With Code: 0
File âC:\Users\lsbcherkasovalab\Documents\Mariaâs Thesis\Pavlovian_lastrun.pyâ, line 1198, in
run(
File âC:\Users\lsbcherkasovalab\Documents\Mariaâs Thesis\Pavlovian_lastrun.pyâ, line 563, in run
calibration.run()
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\eyetracker.pyâ, line 178, in run
tracker = self.eyetracker.getIOHubDeviceClass(full=True)
AttributeError: âNoneTypeâ object has no attribute âgetIOHubDeviceClassâ
################# Experiment ended with exit code 1 [pid:4200] #################
528.4766 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
528.4860 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
528.4917 INFO Loaded monitor calibration from [â2020_11_05 15:33â]
What did you try to make it work?:
In response to one component of the message: âDEPRECATION The Tobii eyetracker requires package âpsychopy-eyetracker-tobiiâ to be installed. Please install this package and restart the session to enable support,â we tried to pip install âpsychopy-eyetracker-tobiiâ package. This did not work. ERROR: Could not find a version that satisfies the requirement psychopy-eyetracker-tobii (from versions: none); ERROR: No matching distribution found for psychopy-eyetracker-tobii. The package definitely exists, so perhaps some compatibility issue?
Also, I looked at the PsychoPy-Tobii-Workshop shared by Rebecca Hirst (shared - Google Drive, an incredibly helpful resource) and downloaded the antisaccade experiment provided. That experiment failed to run with similar messages around the cedrusBox component:
Alert 4120: Component etRecord_2 has stop time set as a duration, but doesnât have a start time
For more info see https://docs.psychopy.org/alerts/4120.html## Running: C:\Users\lsbcherkasovalab\Documents\antisaccade\antisaccade_lastrun.py ##
47.3463 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
47.3568 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
47.3671 EXP Imported conditions.xlsx as conditions, 8 conditions, 5 params
47.3707 INFO Loaded monitor calibration from [â2020_11_05 15:33â]
47.3904 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
47.3997 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
47.4103 EXP Imported conditions.xlsx as conditions, 8 conditions, 5 params
C:\Program Files\PsychoPy\lib\site-packages\numpy_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas64__v0.3.21-gcc_10_3_0.dll
warnings.warn(âloaded more than 1 DLL from .libs:â
C:\Program Files\PsychoPy\lib\site-packages\scipy_init_.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.4
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
WARNING: pytables package not found. ioHub functionality will be disabled.
Hello from the pygame community. Contribute - pygame wiki
C:\Program Files\PsychoPy\lib\site-packages\numpy_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Program Files\PsychoPy\lib\site-packages\numpy.libs\libopenblas64__v0.3.21-gcc_10_3_0.dll
warnings.warn(âloaded more than 1 DLL from .libs:â
WARNING: pytables package not found. ioHub functionality will be disabled.
C:\Program Files\PsychoPy\lib\site-packages\scipy_init_.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.4
Traceback (most recent call last):
File âC:\Users\lsbcherkasovalab\Documents\antisaccade\antisaccade_lastrun.pyâ, line 1395, in
inputs = setupInputs(expInfo=expInfo, thisExp=thisExp, win=win)
File âC:\Users\lsbcherkasovalab\Documents\antisaccade\antisaccade_lastrun.pyâ, line 219, in setupInputs
ioServer = io.launchHubServer(window=win, experiment_code=âantisaccadeâ, session_code=ioSession, datastore_name=thisExp.dataFileName, **ioConfig)
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\contrib\lazy_import.pyâ, line 118, in call
return obj(*args, **kwargs)
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client\connect.pyâ, line 260, in launchHubServer
return ioHubConnection(iohub_config)
File âC:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client_init_.pyâ, line 294, in init
self.iohub_status = self.startServer(ioHubConfig, ioHubConfigAbsPath)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client_init.py", line 1033, in _startServer
self.createDeviceList(ioHubConfig[âmonitor_devicesâ])
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client_init.py", line 1059, in _createDeviceList
if device_config.get(âenableâ, True) is True:
AttributeError: âstrâ object has no attribute âgetâ
################ Experiment ended with exit code 1 [pid:12912] #################
63.6758 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
63.6855 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
63.6960 EXP Imported conditions.xlsx as conditions, 8 conditions, 5 params
63.6977 INFO Loaded monitor calibration from [â2020_11_05 15:33â]
317.0058 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
317.0116 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
317.1117 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
317.1230 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
317.2418 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
317.2509 ERROR Failed to load component package cedrusBox
. Does it have a __init__.py
?
317.2563 INFO Loaded monitor calibration from [â2020_11_05 15:33â]
Generating PsychoPy scriptâŚ
Any help would be very much appreciated!!! We donât know where to even begin approaching this issue.