Colorsys import fails
Hi all,
I've been running an experiment in OpenSesame (version 4.0.24) where I display colored circles, and I use colorsys.hls_to_rgb() to set their colors. Everything worked fine for the first dozen participants, but after that the experiment began freezing and occasionally crashing right after I enter the subject number, before the experiment actually starts. Restarting OpenSesame helped temporarily.
Now, after collecting data from 20 participants, the experiment no longer runs at all. It gets stuck on a gray screen before the welcome message appears. I noticed that when I remove import colorsys, the experiment runs again, but then it understandably crashes when it's time to display a circle.
I wanted to report this issue so the developers are aware, and I would also appreciate suggestions for alternative modules/libraries I could use for converting HLS to RGB or setting colors more reliably within OpenSesame.
Thank you in advance for your help!
Best,
Bugay
Here are some further details:
OpenSesame version
Tried running with both 4.0.24 & 4.1.0.
Operating system
On computers running under Windows 10 & 11.
Backend
PsychoPy backend
No error messages.

Comments
Hi @bugay
I'm not sure what's happening here, but here are a few ideas:
If none of these suggestions help, could you share your experiment file so that I can take a look?
Claire
Check out SigmundAI.eu for our OpenSesame AI assistant! 🤖