Psychopy encountered an internal problem with Pavlovia

URL of experiment:

Description of the problem:

I could not run my experiment online. The message which said that Psychopy encountered an internal problemkept popping up. Details below:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui_base.py”, line 128, in checkForLoginURL
pavlovia.login(self.tokenInfo[‘token’])
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 109, in login
if currentSession.user is not None:
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 429, in user
self._user = User(self.gitlab.user.username)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 148, in init
assert ‘gitlabId’ in self.info, _translate(
AssertionError: Could not retrieve user info for user dezichow, server returned:
{}

Have you changed your username on GitLab? Other users have had a similar bug for that reason

Hi Parsons. I didn’t. The error message popped up when I clicked onto Pavlovia at the tool bar, before I signed in.

Thanks.

Daisy

This is the screenshot when the message popped up.

Thanks a lot!

Best,
Daisy

daisy chow (aogdaisy@yahoo.com.hk) 在 2022年6月22日星期三 上午10:41:49 [GMT+8] 寫道:

Hi Parsons. I didn’t. The error message popped up when I clicked onto Pavlovia at the tool bar, before I signed in.

Thanks.

Daisy

Same here. how to solve it?

Please could you paste your entire error message as well as confirming what version of PsychoPy you are using and what you did which caused the error?

I am having the same issue here.

I’m using v2024.2.3

and here is the entire error message.

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/pavlovia_ui/menu.py”, line 131, in onNew
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 504, in user
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 197, in __init__
AssertionError: Could not retrieve user info for user yuinaishigami, server returned:
{}

Try this solution:

Hello, thank you so much for your reply.

I’m using a Macbook, and I couldn’t find any files or folders with names under psychopy3 or users.json

Is there any way I can get to the file??
Thank you so much for your help!

It’s probably a hidden file. Try Cmd-Shift-.

Thank you so much for your advice!
Unfortunetly, I couldn’t find a folder called .psychopy3/ on my computer.
However, it seems like we can find hidden files here!

Finder > Go > press option or alt key (to show Library) > Library > Preferences
and I deleted a file called org.opensciencetools.psychopy

Then, somehow it started working!

Also on the PsychoPy Builder, instead of logging in from the Pavlovia.org button at the top of the screen, it works better if we log-in from the Builder menu!!

I hope this information helps somebody in the future !