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\builder.py”, line 759, in fileExport
target=“PsychoJS”)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 73, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 214, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 242, in writeScript
entry.writeInitCodeJS(script)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\routine.py”, line 140, in writeInitCodeJS
thisCompon.writeInitCodeJS(buff)
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’
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.
Hello;
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/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 759, in fileExport
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 73, in generateScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 242, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 214, in _makeTarget
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 242, in writeScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/routine.py”, line 140, in writeInitCodeJS
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/slider/init.py”, line 256, in writeInitCodeJS
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/slider/init.py”, line 256, in
TypeError: unhashable type: ‘list’
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.