OS (e.g. Win10): Mac OS 10.12.5
PsychoPy version (e.g. 1.84.x): 1.85.2
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?: Experiment with images in .xlsx file was working fine for a day before UnicodeEncodeError in sound file began popping up (not sure starting from when; didn’t change anything; ran the experiment numerous times in the same day and the first few times worked fine)
What did you try to make it work?: Looked through almost all related questions, but not sure what is meant by the “print” line in some of the answers. Where is the print line? In which file?
What specifically went wrong when you tried that?: My error message:
Running: /Users/Home/Desktop/TEST - Group 1/GROUP 1 - chinese character recognition_lastrun.py
pyo version 0.8.6 (uses single precision)
Traceback (most recent call last):
File “/Users/Home/Desktop/TEST - Group 1/GROUP 1 - chinese character recognition_lastrun.py”, line 18, in
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound/init.py”, line 143, in
elif dev not in backend.getDevices(kind=‘output’):
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound/backend_pyo.py”, line 68, in getDevices
devName = dev[‘name’].decode(osEncoding) # convert to unicode
File “encodings/utf_8.pyc”, line 16, in decode
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-1: ordinal not in range(128)