Thanks for the post @fgasking, have not seen your second error before. In the URL you have posted, I get the 403 error, and then if I go to the repo, the repo is empty. So, looks like something went wrong with the sync.
For the second error, it looks like it is related to the output of the string in the expInfo dict. The generated string in your expInfo object is preceded by the u which shows explicitly that the string is unicode, however this does not work in JS. Will look into this as an issue, but in the meantime, you could set the export of your html to manual, change the JS script so that in the expInfo JS object do not have the u prefix (delete it), and then resync and try again. Alternatively, try with a Python 3 version of PsychoPy, I think that removes the u'' prefix.
Just for info, this demo will not actually work correctly online once you have the correct string formatting. It just needs the small amount code in the code components translating to JavaScript.
Thank you for your response. I already updated to the latest version and the problem still exists. I sometime would have problem synchronizing(would just show synchronizing without processing), and I would try to push them up with cmd. The method of using cmd still doesn’t work for me…
Apologies for the delay. I’ve just tested the latest release, and i’m still getting the same Nginx issues. Synchronising is currently sitting for about 5 minutes before it eventually tries to go to the page - so my guess is that its timing out and isn’t able to communicate with the repo. I have tried turning off the firewall temporarily to see if it was an issue with this, but same thing unfortunately. So unfortunately there are still issues with pushing files to the repo to work correctly.
I am also still logged into Pavlovia whilst doing all of this too. Hopefully its something easy that can be fixed.
Same issues with 3.2.1 Python 3 edition - 64-bit (Trying Python 3 edition to see if its been a Python 2.7 issue) on Windows 10 unfortunately. It sticks on “Synchronising” forever at the moment. After 5 minutes, I did get a prompt to give a Git commit message - which I gave, and then it just sat “Synchronising”.
PsychoPy window just has a message to say that its compiling the JS output, though it has done this within the project folder in the HTML file. So its waiting to upload it seems and just isn’t pushing to the empty repository.
Hi @fgasking, this suggests an error trying to compile the code. Would you mind sharing the task? Also, are there any errors appearing in the console at all?
So, no custom code etc. It does seem to generate the code in the HTML folder as well. But no errors in the console.
EDIT - I’ve just tried updating the project details, and moved the project root to the subfolder with my experiment (D:\newtest). In the console, when trying to then sync - it says:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 364, in onSyncButton
self.project.sync(infoStream=self.syncPanel.infoStream)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 640, in sync
self.repo = self.getRepo(forceRefresh=True, infoStream=infoStream)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 755, in getRepo
.format(repr(self.localRoot), repr(gitRoot)))
AttributeError: The requested local path for project
‘D:/newtest’
sits inside another folder, which git will not permit. You might like to set the project local folder to be
‘D:/’
Don’t really want to set D: as my project root Doing that doesn’t fix the issue anyway or make any difference. It says it successfully syncs, but there are no files uploaded to the repo.
ooo, ouch.
I think psychopy is saying you have at some point created a project at D:/ !
If you go with your commandline to d:/ I think there might be a git repository there (a folder named .git)
I am also receiving the " 403 Forbidden" Error. Which files do I need and where do they need to be to run the PILOT from pavolvia.
Whenever I sync using builder, there is never files in the repository I create. It seems that I need to put the files where they need to be manually, but I do not know which files or where they need to be so the PILOT command works.