Error Message from PsychoPy3 2020.2.5 Win64 Builder


OS: Win7
PsychoPy version: PsychoPy3 2020.2.5 Win64
Standard Standalone? Yes

Hello!~ I was trying to run a trial, clicked the ‘Run’ button, and the following error message came up. Could anyone kindly help out? Thanks in advance!

Traceback (most recent call last):

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\”, line 1066, in runFile

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\”, line 559, in runLocal


File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\”, line 73, in generateScript

compileScript(infile=exp, version=None, outfile=filename)

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\”, line 242, in compileScript

_makeTarget(thisExp, outfile, targetOutput)

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\”, line 221, in _makeTarget

script = thisExp.writeScript(outfile, target=targetOutput)

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 172, in writeScript

localDateTime = data.getDateStr(format="%B %d, %Y, at %H:%M")

File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\data\”, line 626, in getDateStr

now = time.strftime(format, time.localtime())

ValueError: embedded null byte

It looks like for whatever reason, time.localtime() is returning None. Do you have any custom packages installed, or any variables named time which might have overwritten it?

Thank you so much for your reply! It could be a problem with my own computer rather than PsychoPy. I will (try to) look into it!~