I’m trying to sync my code to Pavlovia and receiving an error message, if anyone could help!
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1612, in onPavloviaSync
pavlovia_ui.syncProject(parent=self, file=self.filename, project=self.project)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 854, in syncProject
project.sync()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 906, in sync
if self.repo is None:
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1033, in repo
raise AttributeError(“The requested local path for project\n\t{}\n”
AttributeError: The requested local path for project
‘C:\Users\Sophi\Documents\GitRoot\thesiscode’
sits inside another folder, which git will not permit. You might like to set the project local folder to be
‘C:\Users\Sophi\Documents’
I’m currently attempting to run an IAT based on the builders with 24.2.2
My most recent error
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\git\cmd.py”, line 1262, in execute
proc = safer_popen(
File “C:\Program Files\PsychoPy\lib\site-packages\git\cmd.py”, line 281, in _safer_popen_windows
return Popen(
File “C:\Program Files\PsychoPy\lib\subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “C:\Program Files\PsychoPy\lib\subprocess.py”, line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 206] The filename or extension is too long
The above exception was the direct cause of the following exception:
What is the path to your PsychoPy file?
I finally got it pushed through after changing it from documents to my computer, but now I’m stuck on a white screen that says “initialising” when I pilot it through Pavlovia. It works fine locally
What is the error message in the browser console?
/sstringfield/thesis…tml/IAT-1.4.js:2955 Uncaught SyntaxError: Unexpected token ‘*’
Are you trying to import a Python library like random or pandas?
No, I figured out this was the error:
if (!buttonlink.wasClicked) {
// end routine when buttonlink is clicked
continueRoutine = false;
import * as webbrowser from ‘webbrowser’;
window.open (link);
I used the builder to create the button, so I’m trying to see what I need to change it to to stop the problem.
I found the old thread that suggested just deleting the import command and that worked. Now I’m stuck with the currentloop is not defined error.
Does your experiment have any loops? Is “is trials” ticked in an least one loop?
Here is the code. There are loops in my experiment. I’m not very familiar with JS (I imported the experiment from OpenIAT and then worked from there in the builder), but I’m trying.
It works locally in my computer. I opened the console and this was the error message.
Hello
You use variable condition files in your block and trial loops. Add these files as Additional resources via Experiment settings → Online
Best wishes Jens
I added the excel files into the additional resources and am still experiencing the error when I attempt to run it online
Hello
What is the error message? The stimWord-column in your conditon-files is empty but you use it. The CorrAns column is not always filled.
PsychoPy (running locally) and PsychoJS (running online) have a different fault tolerance. You can try to run the experiment locally in a browser. When it runs there, it will run on Pavlovia.
Best wishes Jens