psychopy.org | Reference | Downloads | Github

Error when trying to compile JS script in Psychopy Standalone Version 2021.2.3

Hi everyone,

I have an experiment, I generated in the pip installed Psychopy Version 2021.1.4 and that also runs online.
As I wanted to update my version, I downloaded the new Standalone Version 2021.2.3.

I can easily open the experiment and also generate the PsychoPy Code, but when I try to generate the JS code, I get the following error:

Traceback (most recent call last):
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\app\builder[builder.py](http://builder.py/)”, line 793, in fileExport
target=“PsychoJS”)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\scripts[psyexpCompile.py](http://psyexpcompile.py/)”, line 74, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\scripts[psyexpCompile.py](http://psyexpcompile.py/)”, line 247, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\scripts[psyexpCompile.py](http://psyexpcompile.py/)”, line 219, in _makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 254, in writeScript
self_copy.flow.writeFlowSchedulerJS(script)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\experiment[flow.py](http://flow.py/)”, line 309, in writeFlowSchedulerJS
resourceFiles = set([resource[‘rel’].replace("\", “/”) for resource in self.exp.getResourceFiles()])
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 877, in getResourceFiles
condsPaths = findPathsInFile(params[‘conditionsFile’].val)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 860, in findPathsInFile
conds = data.importConditions(thisFile[‘abs’]) # load the abs path
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\data[utils.py](http://utils.py/)”, line 349, in importConditions
sep=sep, dec=dec)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\psychopy\data[utils.py](http://utils.py/)”, line 252, in _attemptImport
sep=sep, decimal=dec)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\pandas\io[parsers.py](http://parsers.py/)”, line 678, in parser_f
return _read(filepath_or_buffer, kwds)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\pandas\io[parsers.py](http://parsers.py/)”, line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\pandas\io[parsers.py](http://parsers.py/)”, line 787, in init
self._make_engine(self.engine)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\pandas\io[parsers.py](http://parsers.py/)”, line 1014, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File “C:\Users\eplog\AppData\Local\PsychoPy\lib\site-packages\pandas\io[parsers.py](http://parsers.py/)”, line 1708, in init
self._reader = parsers.TextReader(src, **kwds)
File “pandas_libs\parsers.pyx”, line 384, in pandas._libs.parsers.TextReader.cinit
File “pandas_libs\parsers.pyx”, line 697, in pandas._libs.parsers.TextReader._setup_parser_source
OSError: Initializing from file failed

Luckily I can still use the older version, but I would be really greatful for some help!

Thanks in advance!

@Becca