psychopy.org | Reference | Downloads | Github

UnicodeDecodeError?!

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win7
PsychoPy version (e.g. 1.84.x): 1.9.02
Standard Standalone? (y/n) If not then what?:maybe yes,actually i don’t know
What are you trying to achieve?:
I unloaded it and reinstalled it.
What did you try to make it work?:
Since I installed the new version, the experimental program couldn’t run, and then I reinstalled 1.8.56, but it didn’t work, so I installed 1.9.02.
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

Hi
Maybe I reinstalled it too many times, and now I can’t even play the demo.When I click run, the program doesn’t respond.

欢迎来到 PsychoPy2!
v1.90.2

Sorry: UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 31-35: ordinal not in range(128)

Running: C:\Users\Administrator\Desktop\新建文件夹\psychopy-1.90.2\psychopy-1.90.2\psychopy\demos\builder\stroop\stroop.py

pyo version 0.8.7 (uses single precision)
Traceback (most recent call last):
File “C:\Users\Administrator\Desktop\新建文件夹\psychopy-1.90.2\psychopy-1.90.2\psychopy\demos\builder\stroop\stroop.py”, line 14, in
from psychopy import locale_setup, sound, gui, visual, core, data, event, logging, clock
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy\visual_init_.py”, line 26, in
from .text import TextStim
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy\visual\text.py”, line 28, in
import psychopy.event
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy\event.py”, line 63, in
from pyglet.window.mouse import LEFT, MIDDLE, RIGHT
File “C:\Program Files\PsychoPy2\lib\site-packages\pyglet\window_init_.py”, line 1876, in
gl.create_shadow_window()
File "C:\Program Files\PsychoPy2\lib\site-packages\pyglet\gl_init
.py", line 208, in create_shadow_window
shadow_window = Window(width=1, height=1, visible=False)
File "C:\Program Files\PsychoPy2\lib\site-packages\pyglet\window\win32_init
.py", line 133, in init
super(Win32Window, self).init(*args, **kwargs)
File "C:\Program Files\PsychoPy2\lib\site-packages\pyglet\window_init
.py", line 567, in init
caption = caption.decode(“utf8”)
File “C:\Program Files\PsychoPy2\lib\encodings\utf_8.py”, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xd0 in position 31: invalid continuation byte

Thank you.

Hi @MaggieL,

To help it would be good to know the answer to:

Hi @dvbridges,
Thank you for your reply.But I’m sorry I don’t understand what you mean. (
I’m using Machine Translation. :expressionless: