Hi everyone,
I have created a well-working experiment that I was able to run on any machine I tried, no problems there. After a bit, I have decided to add a sound component to it (what particular sound would play changes every repeat) and, again, all worked without an issue. However, when I tried to run it on a different machine (same OS - Windows - just a different version, 7 instead of 10), I got the following error:
File “D:.…\Ufoni.py”, line 80, in
Zvuk_instrukce = sound.Sound(‘A’, secs=-1)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\sound.py”, line 680, in init
initPyo(rate=sampleRate)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\sound.py”, line 1028, in initPyo
logging.flush()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\logging.py”, line 282, in flush
logger.flush()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\logging.py”, line 268, in flush
target.write(formatted[thisEntry] + ‘\n’)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\logging.py”, line 188, in write
stream.write(txt)
File “C:\Program Files (x86)\PsychoPy2\lib\codecs.py”, line 706, in write
return self.writer.write(data)
File “C:\Program Files (x86)\PsychoPy2\lib\codecs.py”, line 369, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe1 in position 32: ordinal not in range(128)
apparently, this issue is only related to the sound component, since when I commented out all the code related to the sound component, the error goes away. I’m having a hard time figuring out why, though - I am not using any non-ascii characters in the component name or anything like that. The machine where the code was created (partially using the Builder) has an EN locale, the machine having issues has CZ locale. The same thing happened on yet another machine with CZ locale.
Any clues as to what might be causing this? Thanks.