Problems with connecting Qualtrics -> SONA -> Pavlovia

URL of experiment:

Description of the problem: I am trying to put my experiment online. I have followed the instructions provided by the following Crib Sheet to connect my experiment to Qualtrics → SONA → Pavlovia. However, when ever I click on “Run the Study Online” in PsychoPy, I run into an internal error?

Specifically, this is what I get:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\”, line 1240, in onPavloviaRun
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\”, line 719, in fileExport
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\”, line 73, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\”, line 242, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\”, line 214, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\”, line 225, in writeScript
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\settings_init
.py", line 598, in writeExpSetupCodeJS
incompleteURL=self.params[‘Incomplete URL’]))
TypeError: str returned non-string (type NoneType)

Does anyone know how to resolve this issue?


What have you got in your complete and incomplete URL fields?

Hi @wakecarter ,

Here is a screenshot,

In the completed URL section I have typed $" my SONA URL and then "+expInfo[‘participant’]

You can see that the incomplete URL is empty as of right now.


Maybe try putting something in there, like a link to your institution.

It’s possible that there’s a space there

Hey @wakecarter,

Unfortunately, I still get the same errors. Do I need to write some code to specify the URL params for my experiment to run online?

Thank you for taking the time out to help me with this issue. I am using PsychoPy 2020.2.10 if that is any consolidation. I have seen a few people try to downgrade their PsychoPy to bypass this issue, but I require the write in textbox response as part of the experiment.

Zooming in, I think I can see smart quotes around participant.

I’d recommend you delete and retype all the quotes in those fields to check.

1 Like