Get an internal error when trying to sync psychopy builder with pavlovia

Description of the problem:

When I tried to sync the builder with my remote pavlovia project I get a pop up screen that says that psychopy has encountered an unhandled Internal error, as well as the following report:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/project.py”, line 364, in onSyncButton
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 662, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 730, in push
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 721, in push
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/cmd.py”, line 548, in <lambda>
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/cmd.py”, line 1014, in _call_process
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/cmd.py”, line 825, in execute
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(1)
  cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git push https://oauth2:aad12de4b22e17a545ac2512c5e5dd885c7fd6f0a5f3668e5a27a0ebe378e0d3@gitlab.pavlovia.org/arielm123/beat_fit_str.git master
  stderr: ‘To https://gitlab.pavlovia.org/arielm123/beat_fit_str.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to ‘https://oauth2:aad12de4b22e17a545ac2512c5e5dd885c7fd6f0a5f3668e5a27a0ebe378e0d3@gitlab.pavlovia.org/arielm123/beat_fit_str.git’
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push —help’ for details.’

I’ve tried pulling from GitLab before trying to sync the experiment again but it said that everything was up to date.

I’m not quite sure why this is happening, and I am a pretty new psychopy user so any advice will help.
Thanks

1 Like

Thanks again for your reply. I’ve tried that but now when I try to sync the project I get another unhandled internal error:

Traceback (most recent call last):
  File “urllib3/connectionpool.pyc”, line 384, in _make_request
  File “<string>”, line 2, in raise_from
  File “urllib3/connectionpool.pyc”, line 380, in _make_request
  File “http/client.pyc”, line 1331, in getresponse
  File “http/client.pyc”, line 297, in begin
  File “http/client.pyc”, line 258, in _read_status
  File “socket.pyc”, line 586, in readinto
  File “urllib3/contrib/pyopenssl.pyc”, line 298, in recv_into
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/requests/adapters.py”, line 449, in send
  File “urllib3/connectionpool.pyc”, line 638, in urlopen
  File “urllib3/util/retry.pyc”, line 367, in increment
  File “urllib3/packages/six.pyc”, line 686, in reraise
  File “urllib3/connectionpool.pyc”, line 600, in urlopen
  File “urllib3/connectionpool.pyc”, line 386, in _make_request
  File “urllib3/connectionpool.pyc”, line 306, in _raise_timeout
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘gitlab.pavlovia.org’, port=443): Read timed out. (read timeout=2)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1326, in onPavloviaSync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/project.py”, line 468, in syncProject
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/project.py”, line 65, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 374, in listUserGroups
  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 133, in list
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/__init__.py”, line 577, in http_list
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/__init__.py”, line 686, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/__init__.py”, line 691, in _query
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gitlab/__init__.py”, line 481, in http_request
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/requests/sessions.py”, line 646, in send
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/requests/adapters.py”, line 529, in send
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=‘gitlab.pavlovia.org’, port=443): Read timed out. (read timeout=2)

I got it to work, thanks for the help.