Pavlovia Sync buttons just return errors after upgrading to latest version of PsychoPy

If this template helps then use it. If not then just delete and start from scratch.

OS Windows 10
PsychoPy version 2020.2.2
What are you trying to achieve?:
I have an experiment that I want to sync to Pavlovia. I’ve done this on prior versions of PsychoPy but just recently got the 2020.2.2 version. When I click Sync I get the following error:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1232, in onPavloviaSync
retVal = pavlovia_ui.syncProject(parent=self, project=self.project)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 488, in syncProject
recreatorDlg = ProjectRecreator(parent=parent, project=project)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 611, in init
1, wx.ALL | wx.ALIGN_RIGHT, 5)
wx._core.wxAssertionError: C++ assertion “!(flags & wxALIGN_RIGHT)” failed at …\src\common\sizer.cpp(2098) in wxBoxSizer::DoInsert(): Horizontal alignment flags are ignored in horizontal sizers

I have the same problem since upgrading to the latest version today.

The error message I get is exactly the same:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1232, in onPavloviaSync
retVal = pavlovia_ui.syncProject(parent=self, project=self.project)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 488, in syncProject
recreatorDlg = ProjectRecreator(parent=parent, project=project)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 611, in init
1, wx.ALL | wx.ALIGN_RIGHT, 5)
wx._core.wxAssertionError: C++ assertion “!(flags & wxALIGN_RIGHT)” failed at …\src\common\sizer.cpp(2098) in wxBoxSizer::DoInsert(): Horizontal alignment flags are ignored in horizontal sizers

Does anyone know how to fix this please? Thank you.

Ah, this is one I missed… In the latest version we have upgraded to the newest version of wx, a Python package which handles all the windows and dialog menus. They have changed how ALIGN flags work so I was going through and removing all these obsolete calls, this is one I missed! I’ll remove these for our next bug fix release, this should be fixed in 2020.2.3.

OS Windows 10
PsychoPy version 2020.2.2
What are you trying to achieve?:
I’m getting this same error, but curiously, the sync button worked for me this morning, and now it is not working. I haven’t updated my version or anything. I’m new to PsychoPy and Pavlovia, so I’m worried I’ve messed something up.

Earlier, I synced a project from Builder to Pavlovia using that button in builder for the first time. The syncing worked fine and the project showed up on my gitlab. However, I accidentally added it from the wrong local root, so I decided to just remove the whole project from gitlab and do it again from the correct local root. After deleting the project, and trying to sync again, that is when I started getting this error that ozub and Emanuel are getting.

Did I mess something up by removing the project and then trying to sync it again anew? Is there anything I can do to fix this?