| Reference | Downloads | Github

PTB-CRITICAL: In call to PsychSetThreadPriority()

I’m getting the following error:

### Running: /home/bassam/code-workspaces/testpsychopy/ ####
PTB-CRITICAL: In call to PsychSetThreadPriority(): Failed to set new basePriority 2, tweakPriority 1, effective 1 [REALTIME] for thread (nil) provided!
PsychHID: KbQueueStart: Failed to switch to realtime priority [Operation not permitted].
##### Experiment ended. #####

After I hit run, it asks for the participant name, the whole screen goes grey for half a second and then it stops. My experiment has nothing in it except for a text stimuli that displays “hello” for 5 seconds.

It does run from the website however.

What could be the problem?

The error seems to be connected to the Psychtoolbox Python package. You don’t get any errors online, because the JS script translation of your Psychtoolbox code has nothing to do with Psychtoolbox. The JS equivalent uses entirely different code to produce a similar effect.

Do you want to run your experiment offline? Are sound latencies or keyboard reaction times important for you?

What is your operating system? Do you use the standalone version?