| Reference | Downloads | Github

HTML folder not getting created for online experiment

Hi all,

I am trying to use Pavlovia and I am new to it. The problem I am getting is when I am trying to export HTML of my experiment, an HTML folder is getting created, sure, but it has nothing in it. There might be something I might be doing wrong? Any help would be appreciated.


Edit: The error is typed here:

> Traceback (most recent call last):
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\app\builder\", line 2262, in onPavloviaSync
>     self.fileExport(htmlPath=self._getHtmlPath(self.filename))
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\app\builder\", line 1682, in fileExport
>     target="PsychoJS")
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\app\builder\", line 2241, in generateScript
>     psyexpCompile.compileScript(infile=self.exp, version=None, outfile=experimentPath)
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\scripts\", line 51, in compileScript
>     script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\experiment\", line 145, in writeScript
>     self.settings.writeInitCodeJS(script, self.psychopyVersion, localDateTime, modular)
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\experiment\components\settings\", line 445, in writeInitCodeJS
>     self.prepareResourcesJS()
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\experiment\components\settings\", line 434, in prepareResourcesJS
>     resourceFiles = self.exp.getResourceFiles()
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\experiment\", line 733, in getResourceFiles
>     condsPaths = findPathsInFile(params['conditionsFile'].val)
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\experiment\", line 716, in findPathsInFile
>     subFile = getPaths(val)
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\site-packages\psychopy\experiment\", line 665, in getPaths
>     thisFile['rel'] = os.path.relpath(filePath, srcRoot)
>   File "C:\Program Files (x86)\PsychoPy3_PY2\lib\", line 529, in relpath
>     % (path_prefix, start_prefix))
> ValueError: path is on drive 0:, start on drive D:

Hi @Shardul_Shankar, wondering which drive your experiment and conditions files are stored?

Hi @dvbridges,

Both the experiment and the conditions files are stored in D: drive; and the Standalone Psychopy is stored in C: drive.

My experiment has multiple conditions file (6 in total) and only one experiment running 6 loops. Also, the experiment is running perfectly a-okay in the offline mode.

Hi @dvbridges, should I move my experiment in C: drive? It does not logically make any sense, but I could try.