Works on local computer, but fails to transfer online

Here’s the error message:

Traceback (most recent call last):
File “E:\Pschopy\lib\site-packages\psychopy\projects\pavlovia.py”, line 620, in getitem
value = dict.getitem(self, key)
KeyError: ‘path_with_namespace’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “E:\Pschopy\lib\site-packages\psychopy\app\builder\builder.py”, line 1604, in onPavloviaSync
self.fileExport(htmlPath=htmlPath)
File “E:\Pschopy\lib\site-packages\psychopy\app\builder\builder.py”, line 896, in fileExport
self.app.showCoder(fileList=[exportPath])
File “E:\Pschopy\lib\site-packages\psychopy\app_psychopyApp.py”, line 838, in showCoder
self.coder.fileOpen(filename=file)
File “E:\Pschopy\lib\site-packages\psychopy\app\coder\coder.py”, line 2375, in fileOpen
self.setCurrentDoc(filename)
File “E:\Pschopy\lib\site-packages\psychopy\app\coder\coder.py”, line 2350, in setCurrentDoc
self.ribbon.buttons[‘pavproject’].updateInfo()
File “E:\Pschopy\lib\site-packages\psychopy\app\ribbon.py”, line 851, in updateInfo
self.button.SetLabel(project[‘path_with_namespace’])
File “E:\Pschopy\lib\site-packages\psychopy\projects\pavlovia.py”, line 622, in getitem
if key in self.project.attributes:
AttributeError: ‘NoneType’ object has no attribute ‘attributes’

The error is with uploading the experiment. Hard to say exactly why, butI think it has to do with the file path of your experiment, i.e., where you saved your psyexp file. What’s the file path to the psyexp file look like (i.e., what folder is it in on your computer)?

Thanks for your reply. I have the experiment saved on D drive, but the psychopy software is saved on E drive. I don’t know if this error is related to the naming of the folders or if I have to save the experiment in the same place as the software?

You don’t need to have it in the same place as the software, but the error you’re getting seems to be something about the file path of the experiment itself. I don’t think it should matter if they are on different drives, unless one of them is a network drive or something.

Thanks for your reply. I tried to put the experiment folder in another folder without the above reported error, but there is a new one:
Unfortunately we encountered the following error:
TypeError: Cannot assign to read only property’undefined’ of object ‘#’
Try to run the experiment again. lf the error persists, contact theexperiment designer.