Convert Python to Javascript

How do I convert Python to Javascript?
I tried using Export HTML and I get following errors

Is there other ways of converting?

Hi @55555, if you have a code component, it would be useful if you could show the code that needs translating.

Thank you for the fast reply, following shows the line where the error happened

@55555, could you share the link to your project repository on Pavlovia? If not, then would you mind sharing the conditions file?

I don’t have Pavlovia… how do you want me to share the file?

You can share the file here by dragging and dropping the file onto the reply, if that is ok.

Unfortunately I am not allowed to do so… Could you tell me how you would debug though?