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â]