psychopy.org | Reference | Downloads | Github

Internal Error when Opening PsychoPy

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

OS: macOS Catalina 10.15.6
PsychoPy version: 2021.1.4
Standard Standalone? (y/n): yes

Hello everyone,
when I try to open PsychoPy (or an experiment) I get an error message, that PsychoPy “encountered an unhandled internal error!”
I’ve already restarted the program, also restarted my Macbook. As this didn’t worked, I deinstalled PsychoPy (to this time I had version 2021.1.2) and installed the latest version 2021.1.4. But the error message still occurs. I already saw in the forum, that other persons have similar problems (also with windows) but nobody had an helpful answer. Is that a server problem?

Here is the error message. Thank you!

Traceback (most recent call last):
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/_psychopyApp.py“, line 888, in onIdle
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/idle.py“, line 105, in doIdleTasks
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/idle.py“, line 142, in _doTask
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/menu.py“, line 97, in setUser
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py“, line 412, in setToken
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py“, line 437, in startSession
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/init.py“, line 201, in auth
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/init.py“, line 214, in _token_auth
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/exceptions.py“, line 251, in wrapped_f
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/mixins.py“, line 68, in get
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/init.py“, line 532, in http_get
File „/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/init.py“, line 506, in http_request
gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized

I opened PsychoPy as always and I’m never logged in when creating an experiment. And before I had never this problem.

The error occurs as soon as I open PsychoPy.