HELP - online experiment issue

When Pavlovia converted my project into an online format, it had to convert Python into Javascript. When it did, it made an ungodly amount of syntax errors. Unfortunately, deleting all the documents and re-creating the project doesn’t fix it. I’ve found that converting from the builder to Pavlovia works, or it doesn’t, and I don’t understand why. For example, throughout my JavaScript file, it just didn’t define variables before storing things in them (which is fine for Python but not JavaScript) and missing semicolons. The only thing I can think of that may have saved this from happening would have been if I’d converted my python script to java (for my code components), but the issues seem to be related to all of the builders in built components that I don’t have any control over.

Any suggestions on what could be going wrong? Any help would be appreciated.

Hi,

You haven’t given much information about your experiment, or your version of PsychoPy but here are some of my relevant tips.

1 Like

Thank you! I am using psychopy(v2025.1). I have gone back and fixed all the issues but now every time I try to sync to pavlovia I get this error: Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 1621, in onPavloviaSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/pavlovia_ui/project.py”, line 854, in syncProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 916, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 1155, in firstPush
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 1321, in commit
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/cmd.py”, line 986, in
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/cmd.py”, line 1599, in _call_process
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/cmd.py”, line 1389, in execute
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(1)
cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git commit -m Push initial project files
stdout: ‘On branch master
nothing to commit, working tree clean’

Does your experiment contain very large files (e.g. long videos)?

Is your psyexp file in a folder which has non-experiment sub-folders (e.g. desktop, downloads, documents)?