Error: UserEmailManager not Subscriptable

I’ve been told by my lecturer to use PyschoPy v2025 2.4 beta for our work. When I try to add my Pavlovia account to PyschoPy I’m getting the error message:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\ribbon.py”, line 790, in onClick
self.onPavloviaLogin()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\ribbon.py”, line 883, in onPavloviaLogin
pavui.logInPavlovia(self, evt)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\functions.py”, line 97, in logInPavlovia
pavlovia.login(token, refreshToken=dlg.tokenInfo.get(‘refreshToken’, None), rememberMe=True) # log in to the current pavlovia session
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 156, in login
if currentSession.user is not None:
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 550, in user
self._user = User(self.gitlab.user.username)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 209, in init
‘email’: user.emails[0],
TypeError: ‘UserEmailManager’ object is not subscriptable

I’ve looked at a similar forum ( UserEmailManager not Subscriptable ) which did identify that using a string of numbers for your user id would cause this issue. Like the forum suggested I deleted my account and made a new one with characters for my user name instead. The issue persists.

My classmates are all using the same version as me and have no issues. I’m feeling quite stuck with this issue, any help would be appreciated :slight_smile:

-Jordan

Hello @jrw26vpb

this matches the thread you linked: according to the PsychoPy team (TParsons, Sept 17), the error occurs when the Pavlovia wrapper can’t retrieve the user’s details from GitLab. Numeric usernames are one cause, and a recent username/email change can also cause a temporary out-of-sync state.

Things to try:

  1. Wait a few hours (the new account may not be synced yet), then fully restart PsychoPy and log in again.
  2. Use PsychoPy Studio if possible. The error only affects Standalone. PsychoPy 2025.2.4 (beta?) is an older version.
  3. Email support@opensciencetools.org, link the thread, and mention that you already recreated your account with letters in the username.

Best wishes Jens

Thanks for the reply. I’ve reached out to the support team. I’ve tried waiting and still the same issue. We have been told to use that beta version only, something to do with the software that marks our work. Very strange issue as like I said most people in my class have had no problems with the exact same setup.

Many thanks,
Jordan

I think it also goes for usernames that START with a number, a opposed to just full number ones, so if you haven’t already, make sure it starts with a letter.

@apitiot has fixed an error in the user database which was preventing @jrw26vpb from logging in.