How do I fix "TypeError: object of type 'datetime.time' has no len()"

When I try to run my experiment I get the message: TypeError: object of type ‘datetime.time’ has no len()

How do I fix this?

Please provide your code. Where do you declare datetime.time?


Hello Chen,

Thanks for your answer. I’m a beginner in programming. I used the builder version, do you want me to send the code that pops up in the Coder after running the experiment?

If it’s a short experiment, you can share the experiment itself.
So if I understand correctly, you are not using any code components?

StroopExperiment.psyexp (30.8 KB)

There you go. Yes it is created in the builder. It is for an exercise for my studies.