Ooh, this looks like deep magic. I’m not used to seeing errors that arise in actually generating the experiment code, they are very rare (and indicate the problem is with PsychoPy, not you).
Hi @dvbridges do you know about this? I seem to be able to duplicate an error in compiling a .py file simply by having a static period referred to in the “update” popup menu of the image field of an image component, but the error is slightly different:
Welcome to PsychoPy3!
v3.0.0b6
Traceback (most recent call last):
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py", line 2198, in compileScript
self.generateScript(fullPath)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py", line 2237, in generateScript
psyexpCompile.compileScript(infile=self.exp, version=None, outfile=experimentPath)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py", line 47, in compileScript
script = thisExp.writeScript(outfile, target=targetOutput)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 144, in writeScript
self.flow.writeBody(script)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/experiment/flow.py", line 252, in writeBody
entry.writeMainCode(script)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/experiment/routine.py", line 168, in writeMainCode
event.writeFrameCode(buff)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/static/__init__.py", line 101, in writeFrameCode
self.writeStopTestCode(buff)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/static/__init__.py", line 131, in writeStopTestCode
self.writeParamUpdates(buff)
File "/Applications/PsychoPy3_PY3.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/static/__init__.py", line 159, in writeParamUpdates
prms = self.exp.getComponentFromName(bytes(compName)).params
TypeError: cannot convert 'Param' object to bytes
I wonder if you’ve got any clues what might be causing this. Odd that it hasn’t been reported before. Makes me worry that people aren’t using this feature as often as they should be…