I’ve tried to create a new project in Gitlab/Pavlovia by opening Builder (being logged in on Pavlovia), clicking Pavlovia.org → New.
It fails and gives the following message:
Traceback (most recent call last):
File “/home/flavio/.local/lib/python3.9/site-packages/psychopy/app/pavlovia_ui/menu.py”, line 127, in onNew
if pavlovia.getCurrentSession().user.username:
AttributeError: ‘User’ object has no attribute ‘username’
Apparently, it has happened before, but the solution employed back there does not work with Psychopy 2022.1.1.
Runner gives me this warning (but I don’t know if it is related to the problem or not):
When I try via “Sync”, Builder asks for the file name, asks if I want to create this as a new project and then crashes (i.e. all windows close).
Clicking the Info_dialog_icon, instantaneously crashes Builder
This might sound an obvious try (but it is one I have missed before) - are you sure you are logged into pavlovia in the psychopy application itself? (asking as it can’t find username)
That looks good to me! (was worth a shot) In that case this is definitely @TParsons ball park as it looks like something to do with the new pavlovia user interface
AttributeError: 'User' object has no attribute 'username'
The error occurs simply when i try to create a new project on Pavlovia. Really need to have this resolved ASAP. Anyone have any luck with finding a solution?
I tried your workaround (except for deleting the “hidden” .git and .gitignore folders, which I didn’t have) but it didn’t work for me.
The only difference (via Sync) is that Builder shows the login dialog and wait until I insert my login and password before it crashes. Before, without deleting the appData.cfg file, Builder crashes without even showing the login dialog.
Nothing changes with respect to using Pavlovia.org → New
I think there might be some dead references left over from the failed attempts previously, try going to the pavlovia folder in the same folder as the appConfig file and opening projects.json - this is essentially a dict of projects which PsychoPy knows about. If you find the name of your old project and delete the entry for it, are you then able to sync via the sync button (not the menu item)?