ValueError: stat: path too long for Windows

Just in case, here is the fully error:

Traceback (most recent call last):
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 2265, in onPavloviaSync
    self.fileExport(htmlPath=self._getHtmlPath(self.filename))
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 1682, in fileExport
    target="PsychoJS")
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 2241, in generateScript
    psyexpCompile.compileScript(infile=self.exp, version=None, outfile=experimentPath)
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py", line 51, in compileScript
    script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\experiment\_experiment.py", line 200, in writeScript
    self.settings.writeInitCodeJS(script, self.psychopyVersion, localDateTime, modular)
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\experiment\components\settings\__init__.py", line 494, in writeInitCodeJS
    self.prepareResourcesJS()
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\experiment\components\settings\__init__.py", line 483, in prepareResourcesJS
    resourceFiles = self.exp.getResourceFiles()
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\experiment\_experiment.py", line 799, in getResourceFiles
    thisFile = getPaths(thisParam.val)
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\experiment\_experiment.py", line 724, in getPaths
    if os.path.isfile(thisFile['abs']):
  File "C:\Program Files (x86)\PsychoPy3\lib\genericpath.py", line 30, in isfile
    st = os.stat(path)
ValueError: stat: path too long for Windows
1 Like