Hello everyone,
I posted another issue here (Iohub EyeLink unresponsive keyboard during calibration), but I wanted to also document what happens if I simply run getting_started.py demo with a clean version of PsychoPy 1.84 on Mac OS 10.9 Mavericks.
Running: /Users/egor/Downloads/distribute/demos/coder/getting_started/getting_started.py
2016-09-06 13:08:41.498 python[91949:507] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/6k/qxj7wz1n5kbff7v1rdlvbkkr0000gv/T/org.psychopy.PsychoPy2.savedState
2016-09-06 13:08:44.569 python[91989:507] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/6k/qxj7wz1n5kbff7v1rdlvbkkr0000gv/T/org.psychopy.PsychoPy2.savedState
Could not add path: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/darwin/python27/
<type ‘exceptions.AttributeError’>
AttributeError(“‘module’ object has no attribute ‘EyeLink’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 193, in setConnectionState\n EyeTracker._eyelink=pylink.EyeLink(None)\n’]
** EyeLink Error: Could not connect to EyeLink Eye Tracker. EyeLink Eye tracker device will run in ‘dummy’ mode.
<type ‘exceptions.AttributeError’>
AttributeError(“‘module’ object has no attribute ‘EyeLink’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 193, in setConnectionState\n EyeTracker._eyelink=pylink.EyeLink(None)\n’]
EYELINK Error during _eyelinkSetScreenPhysicalData:
<type ‘exceptions.AttributeError’>
AttributeError(“‘NoneType’ object has no attribute ‘sendCommand’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 1249, in _eyelinkSetScreenPhysicalData\n eyelink.sendCommand(“screen_distance = %d “%(sdist['surface_center'],))\n’]
---- Error during EyeLink EyeTracker Initialization ----
<type ‘exceptions.AttributeError’>
AttributeError(”‘NoneType’ object has no attribute ‘sendCommand’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 85, in init\n self._eyelink.sendCommand(“aux_mouse_simulation = NO”)\n’]
---- Error during EyeLink EyeTracker Initialization ----
Could not add path: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/darwin/python27/
Starting Data Collection. Press SPACE key to stop…
<type ‘exceptions.AttributeError’>
AttributeError(“‘module’ object has no attribute ‘EyeLinkCustomDisplay’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 322, in runSetupProcedure\n import eyeLinkCoreGraphicsIOHubPsychopy\n’,
’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyeLinkCoreGraphicsIOHubPsychopy.py”, line 225, in \n class EyeLinkCoreGraphicsIOHubPsychopy(pylink.EyeLinkCustomDisplay):\n’]
<type ‘exceptions.AttributeError’>
AttributeError(“‘NoneType’ object has no attribute ‘isRecording’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 363, in isRecordingEnabled\n return self._eyelink.isRecording() == 0\n’]
<type ‘exceptions.AttributeError’>
AttributeError(“‘NoneType’ object has no attribute ‘startRecording’”,)
[’ File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/iohub/devices/eyetracker/hw/sr_research/eyelink/eyetracker.py”, line 395, in setRecordingState\n error = self._eyelink.startRecording(1,1,1,1)\n’]
Note that if I add the path to SR version of pylink to PsychoPy standalone paths, it still fails to import properly:
sys.path.append('/Library/Python/2.7/site-packages/pylink/')
print dir(pylink)
################ Running: /Users/egor/Documents/test_pylink.py #################
[‘GSMLink’, ‘LOGGER’, ‘SerialLink’, ‘TCPLink’, ‘UDPLink’, ‘VERSION’, ‘builtins’, ‘doc’, ‘file’, ‘name’, ‘package’, ‘path’, ‘version’, ‘active_logger’, ‘compat’, ‘link’, ‘link_from_url’, ‘logger’]