Crash when trying saving an experiment, then unable to launch again

OS: Win10):
PsychoPy version: 2022.2.3
Standard Standalone: YES

What are you trying to achieve?:
I tried to create my very first experiment: I documented a “welcomeSlide”, then I saved the project

What did you try to make it work?:
As recommended in the troubleshooting.html, I “simply delete the appData.cfg file.”
I was able to relaunch Psychopy, but still unable to save my project

What specifically went wrong when you tried that?:

Following error message poped up:

Traceback (most recent call last):
File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\app\builder\builder.py”, line 786, in fileSaveAs
self.project = pavlovia.getProject(filename)
File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\projects\pavlovia.py”, line 1260, in getProject
raise exceptions.DependencyError(
psychopy.exceptions.DependencyError: gitpython and a git installation required for getProject()

Thank you so much for your help,
Hubert

Hi @Hubert, the error is about something concerning pavlovia and git. So what exactly do you mean by “saving”? Do you mean to save a .psyexp to your harddrive? Or upload something to pavlovia?

Hi Adrian,

Thank you very much for your prompt answer.
Actually I have two issues:

  1. I have an error message when saving experiments locally (on my hard drive). Nevertheless the experiment is properly saved and can be reused without any problem.
  2. I cannot use any pavlovia-related functions via the pavlovia.org menu neither the right-hand side pavlovia-related buttons.
    As an example, pressing “Pavlovia”, returns:
    Traceback (most recent call last):
    File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\app\pavlovia_ui\menu.py”, line 129, in onNew
    if session.user:
    File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\projects\pavlovia.py”, line 442, in user
    if not hasattr(self.gitlab, “user”) or self.gitlab.user.username is None:
    AttributeError: ‘NoneType’ object has no attribute ‘username’

Thank you so much for your support,
Hubert

The first error you posted sounds like PsychoPy is missing some git related software to run the calls concerning pavlovia? Have you tried reinstalling PsychoPy?

Do you have a Pavlovia account already? What happens when you click Pavlovia.org → User → Log in to pavlovia (in the builder)?

Yes I reinstaled psychopy several times. For last instalation I used the very last pip version.
I also instaled git, gitlab and created a pavlovia account.

When clicking Pavlovia.org → User → Log in to pavlovia (in the builder), nothing happens but the following pop up:

Traceback (most recent call last):
File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\app\pavlovia_ui\menu.py”, line 121, in onLogInPavlovia
logInPavlovia(parent=self.parent)
File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\app\pavlovia_ui\functions.py”, line 62, in logInPavlovia
dlg = PavloviaMiniBrowser(parent=parent, loginOnly=True)
File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\app\pavlovia_ui_base.py”, line 79, in init
self.user = pavlovia.getCurrentSession().user
File “c:\users\hubert\appdata\local\programs\python\python38\lib\site-packages\psychopy\projects\pavlovia.py”, line 442, in user
if not hasattr(self.gitlab, “user”) or self.gitlab.user.username is None:
AttributeError: ‘NoneType’ object has no attribute ‘username’

And you probably already tried using the “regular” .exe installer, right?

What do you mean by the “regular” .exe?

I conformed the “PIP Install” from https://www.psychopy.org/download.html

Is there another easier way to install?

Thanks again for your support,
Hubert

I mean the standalone version, which you can download using the big blue button on the page you linked.

Thank you so much Adrian. It seems working perfectly now.
You support was so great.

Cordially,
Hubert