# Internal Error when Opening PsychoPy

**URL:** <https://discourse.psychopy.org/t/internal-error-when-opening-psychopy/22754>\
**Category:** Builder\
**Created:** [May 4, 2021, 6:58am UTC](https://discourse.psychopy.org/t/internal-error-when-opening-psychopy/22754 "2021-05-04T06:58:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrueNo](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@KrueNo](https://discourse.psychopy.org/u/KrueNo)\
**Post date:** [May 4, 2021, 6:58am UTC](https://discourse.psychopy.org/t/internal-error-when-opening-psychopy/22754/1 "2021-05-04T06:58:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [May 4, 2021, 7:01am UTC](https://discourse.psychopy.org/t/internal-error-when-opening-psychopy/22754/2 "2021-05-04T07:01:14Z")

</div>

> [@Internal Error When Opening Any Experiment](https://discourse.psychopy.org/t/internal-error-when-opening-any-experiment/22724/2):
>
> That sounds like you aren’t logged in. Do you have a problem opening PsychoPy and creating and running a very simple experiment locally? When does the error occur?

---

<div class="post-metadata">

**Author:** ![KrueNo](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@KrueNo](https://discourse.psychopy.org/u/KrueNo)\
**Post date:** [May 4, 2021, 7:04am UTC](https://discourse.psychopy.org/t/internal-error-when-opening-psychopy/22754/3 "2021-05-04T07:04:12Z")

</div>

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.
