Error message help--urgent!

I run into this problem everytime I want to open an PyschoPy experiment (builder), does anyone know what’s the issue? I’ll present my experiment to my supervisor tomorrow, but I have no idea how to fix it. Help!!!
The followings are the error messages:

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 864, in onIdle
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\”, line 120, in doIdleTasks
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 300, in flush
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 286, in flush
target.write(formatted[thisEntry] + ‘\n’)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 206, in write
File “C:\Program Files\PsychoPy3\lib\encodings\”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 54-55: character maps to

Could you share your .psyexp file? I’d wager there’s a character in there somewhere (maybe the value of a Text component?) which PsychoPy doesn’t know how to handle

Hi, Thanks very much for your response! I have attached my psyexp file below. SSOT.psyexp (15.5 KB)

Strangely, it seems to open fine for me. Are you using the latest version (2020.2.4) of Psychopy?

I notice a few &# characters in there, if these are the culprit then you can remove these by opening the .psyexp file in a text editor (e.g. Notepad) and then deleting any instance of &# in the text, that might help.

Yes, I’m using the latest version. I reinstalled and restarted my computer, and opened some other experiment files, then I opened mine, somehow the issue disappeared! I don’t know if the same issue will occur, but I’ll take notes for your advice, in case I encounter the same issue.
Thank you very much for your quick response and suggestions! Really appreciate it! :+1::grinning:

1 Like