Problem exporting to HTML

URL of experiment: Pavlovia

Description of the problem: Hi all,
I’m having a problem. I had an experiment that was working online 6 months ago and I was able to get it to work this morning as well. However, I had updated PsychoPy and when I ran the study it looked bad. Not sure what the problem was, I reinstalled PsychoPy to the latest version and fixed 99% of the visual problems. However, now whenever I try to export the HTML to move it back onto Pavlovia I get a bunch of errors and am not sure how to export it to push the updated html onto github. Here are the errors I am receiving. Can anyone help me decode?

Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\”, line 759, in fileExport
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 214, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 242, in writeScript
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\”, line 140, in writeInitCodeJS
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\slider_init
.py", line 256, in writeInitCodeJS
stylesListJS = [sliderStyles[this] for this in stylesList]
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\slider_init
.py", line 256, in
stylesListJS = [sliderStyles[this] for this in stylesList]
TypeError: unhashable type: ‘list’

This might be related to the slider style. Might it be ['rating'] in the drop-down menu?

I can check. I have dozens of sliders so should I be checking to make sure none of them are listed as “rating”?

Sorry, I was bit too fast with that. We’re noticing some issues on our side with Slider. We’ll examine those and give an update. For now, one question: which version of PsychoPy Builder are your using?


And thank you so much for your help. I have been painstakingly removing all of my old sliders and replacing them with new ones because after testing, that seems to be source of the problem.

Happy you found a workaround and our apologies for inconvenience. We made some changes to how sliders work and that indeed seems to cause some trouble with sliders from older versions of PsychoPy. We’ll release an update soon where this problem shouldn’t occur.

I have the following problem, is that because of the same issue you mentioned you discover with sliders? I am using version 2021.1.2 and I am using the slider available in the project builder.

Thank yuo so much for your support.

Traceback (most recent call last):
File “/Applications/”, line 759, in fileExport
File “/Applications/”, line 73, in generateScript
File “/Applications/”, line 242, in compileScript
File “/Applications/”, line 214, in _makeTarget
File “/Applications/”, line 242, in writeScript
File “/Applications/”, line 140, in writeInitCodeJS
File “/Applications/”, line 256, in writeInitCodeJS
File “/Applications/”, line 256, in
TypeError: unhashable type: ‘list’

Yes it is. Sorry for the inconvenience. We don’t yet have a fix in place as far as I know, but let me ask around.

I heard it’s fixed in v2021.1.3, which we’re now in the process of wrapping up. Should be released soon!

1 Like

Excellent, thank you so much for your prompt response.

1 Like

Hi @thomas_pronk, I’m encountering the same problem-- do you have an estimate on when v2021.1.3 will be available? I have a lot of sliders so I will probably just wait for the new version unless there are significant delays from the server fire.

Yeah, the fire delayed development a bit. Not sure yet when the next release will come out.

Thanks, I went ahead and re-did my sliders. That did the trick!

1 Like