Psychopy experiment online on Pavlovia - stuck on initialising

Hi,
PsychoPy version (e.g. 2024.2.4 Py 3.8): Version 2024.2.2
URL of experiment: RSVP [PsychoPy]
What are you trying to achieve?: I have created a RSVP task in Psychopy builder and successfully linked it with Pavlovia, but when I go to pilot/run the experiment, the screen is stuck on initialising… When I look at the console (on Chrome), I get this error: Uncaught SyntaxError: Unexpected token ‘*’ /claireflynn/onlinem…ition/RSVP.js:10784

The line of code from the JavaScript is this: import * as random from ‘random’;

I assume it is something to do with the ‘random’ function but I don’t know how to fix it. Any help would be much appreciated!

Best,

Claire

Hello @Claire_Flynn

You can’t use Python-libraries on Pavlovia. See here Wakefield's Daily Tips - #51 by wakecarter

Best wishes Jens