OS: Ubuntu 20.04
Pssychopy version: 2021.2.0
Standalone
Hi,
I’ve been trying to connect to Eyelink and run the code demo for iohub eyetracking, but so far I haven’t been successful.
My Laptop doesn’t have an ethernet port, so I’m using a USB-c to ethernet adapter. When it’s connected, eyelink shows “Link Closed” so I’m guessing the ethernet conenction is working. I also tried using an older laptop with ethernet port and the same OS/psychopy version but still get the same error.
I’m trying to run the code simple.py from the demo folder for iohub eyetracking, except I changed the configuration for the eyetracker to the following:
eyetracker_config[‘name’] = ‘tracker’
eyetracker_config[‘simulation_mode’] = False
eyetracker_config[‘model_name’] = ‘EYELINK 1000 TOWER’
eyetracker_config[‘network_settings’] = ‘100.1.1.1’
eyetracker_config[‘default_native_data_file_name’] = ‘EXPFILE’
eyetracker_config[‘runtime_settings’] = {‘sampling_rate’:500.0, ‘track_eyes’:‘LEFT’, ‘sample_filtering’:{‘sample_filtering’:‘FILTER_LEVEL_OFF’, ‘FILTER_ONLINE’: ‘FILTER_OFF’}}
eyetracker_config[‘enable_interface_without_connection’] = False
eyetracker_config[‘vog_settings’]= {‘pupil_measure_types’:‘PUPIL_AREA’, ‘tracking_mode’: ‘PUPIL_CR_TRACKING’, ‘pupil_center_algorithm’: ‘CENTROID_FIT’}
devices_config[‘eyetracker.hw.sr_research.eyelink.EyeTracker’] = eyetracker_config
When I try to run the code, I get the following output:
pygame 2.0.1 (SDL 2.0.14, Python 3.8.8)
Hello from the pygame community. Contribute - pygame wiki
displayAPI: failed to set process priority to realtime. Did you remember to run as root?
displayAPI: Connecting
Traceback (most recent call last):
File “/home/lshahsha/anaconda3/lib/python3.8/site-packages/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 232, in setConnectionState
EyeTracker._eyelink = pylink.EyeLink(host_pc_ip_address)
File “/home/lshahsha/anaconda3/lib/python3.8/site-packages/pylink/eyelink.py”, line 237, in init
self.open(trackeraddress,0)
RuntimeError: Could not connect to tracker at 100.1.1.1
** EyeLink Error: Could not connect to EyeLink Eye Tracker. EyeLink Eye tracker device will run in ‘dummy’ mode.
displayAPI: failed to set process priority to realtime. Did you remember to run as root?
[‘class’, ‘delattr’, ‘dict’, ‘dir’, ‘doc’, ‘eq’, ‘format’, ‘ge’, ‘getattr’, ‘getattribute’, ‘gt’, ‘hash’, ‘init’, ‘init_subclass’, ‘le’, ‘lt’, ‘module’, ‘ne’, ‘new’, ‘reduce’, ‘reduce_ex’, ‘repr’, ‘setattr’, ‘sizeof’, ‘str’, ‘subclasshook’, ‘weakref’, ‘_methods’, ‘device_class’, ‘device_class_path’, ‘getDeviceInterface’, ‘getIOHubDeviceClass’, ‘getName’, ‘hubClient’, ‘name’]
pygame 2.0.1 (SDL 2.0.14, Python 3.8.8)
Hello from the pygame community. Contribute - pygame wiki
self._calibration_args:{‘type’: ‘NINE_POINTS’, ‘color_type’: None, ‘unit_type’: None, ‘auto_pace’: True, ‘target_duration’: 1.5, ‘target_delay’: 0.75, ‘pacing_speed’: None, ‘screen_background_color’: [128, 128, 128], ‘target_type’: ‘CIRCLE_TARGET’, ‘target_attributes’: {‘outer_diameter’: 33.0, ‘inner_diameter’: 6.0, ‘outer_stroke_width’: 2.0, ‘outer_fill_color’: [64, 64, 64], ‘outer_line_color’: [255, 255, 255], ‘inner_stroke_width’: 1.0, ‘inner_fill_color’: [255, 0, 0], ‘inner_line_color’: [0, 0, 0], ‘outer_color’: None, ‘inner_color’: None}}
Calibration returned: {‘message’: ‘’, ‘result’: 1000}
Any ideas how I can fix this?
Ladan