Can't open old .psyexp file with the latest PsychoPy

Hi PsychoPy team, I encountered a problem when opening an old experimental programme with the new PsychoPy app. Here are the details:

OS: MacOS 15.7.2
PsychoPy version: 2025.1.1
Standard Standalone Installation? (y/n): Yes
Do you want it to also run online? (y/n): No
What are you trying to achieve?

I programmed an experiment using PsychoPy v2023.2.3, and it worked well. However, when I upgraded to v2025.1.1 today and tried to open the psyexp file, I received the error message below:

Traceback (most recent call last):
  File “urllib3/connection.pyc”, line 198, in _new_conn
  File “urllib3/util/connection.pyc”, line 85, in create_connection
  File “urllib3/util/connection.pyc”, line 73, in create_connection
ConnectionRefusedError: [Errno 61] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File “urllib3/connectionpool.pyc”, line 773, in urlopen
  File “urllib3/connectionpool.pyc”, line 1042, in _prepare_proxy
  File “urllib3/connection.pyc”, line 704, in connect
  File “urllib3/connection.pyc”, line 213, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x142f92fb0>: Failed to establish a new connection: [Errno 61] Connection refused

The above exception was the direct cause of the following exception:

urllib3.exceptions.ProxyError: (‘Unable to connect to proxy’, NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x142f92fb0>: Failed to establish a new connection: [Errno 61] Connection refused’))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/adapters.py”, line 667, in send
  File “urllib3/connectionpool.pyc”, line 841, in urlopen
  File “urllib3/util/retry.pyc”, line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘gitlab.pavlovia.org’, port=443): Max retries exceeded with url: /api/v4/user (Caused by ProxyError(‘Unable to connect to proxy’, NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x142f92fb0>: Failed to establish a new connection: [Errno 61] Connection refused’)))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/_psychopyApp.py”, line 936, in MacOpenFile
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/_psychopyApp.py”, line 850, in newBuilderFrame
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 182, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 4644, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/ribbon.py”, line 201, in addPavloviaProjectCtrl
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/ribbon.py”, line 403, in addPavloviaProjectCtrl
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/ribbon.py”, line 903, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/ribbon.py”, line 958, in updateInfo
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 1655, in project
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 1549, in getProject
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 153, in login
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 450, in setToken
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 483, in startSession
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/client.py”, line 400, in auth
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/v4/objects/users.py”, line 172, in get
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/exceptions.py”, line 344, in wrapped_f
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/mixins.py”, line 157, in get
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/client.py”, line 813, in http_get
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/client.py”, line 737, in http_request
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/gitlab/_backends/requests_backend.py”, line 157, in http_request
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/sessions.py”, line 589, in request
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/sessions.py”, line 703, in send
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/adapters.py”, line 694, in send
requests.exceptions.ProxyError: HTTPSConnectionPool(host=‘gitlab.pavlovia.org’, port=443): Max retries exceeded with url: /api/v4/user (Caused by ProxyError(‘Unable to connect to proxy’, NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x142f92fb0>: Failed to establish a new connection: [Errno 61] Connection refused’)))

What did you try to make it work?:

I tried to downgraded to 2023.2.3 but I encountered the launch error when launching the app.

Thank you for your help in advance!

Have you checked whether you can run and sync a new experiment in 2025.1.1?

Hi Carter, thank you very much for your suggestion. I created a new experiment in 2025.1.1 and I encountered an error when syncing it to Pavlovia. Here is the error message:

Traceback (most recent call last):
  File “urllib3/connectionpool.pyc”, line 464, in _make_request
  File “urllib3/connectionpool.pyc”, line 1093, in _validate_conn
  File “urllib3/connection.pyc”, line 741, in connect
  File “urllib3/connection.pyc”, line 920, in _ssl_wrap_socket_and_match_hostname
  File “urllib3/util/ssl_.pyc”, line 480, in ssl_wrap_socket
  File “urllib3/util/ssl_.pyc”, line 524, in _ssl_wrap_socket_impl
  File “ssl.pyc”, line 513, in wrap_socket
  File “ssl.pyc”, line 1071, in _create
  File “ssl.pyc”, line 1342, in do_handshake
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1007)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File “urllib3/connectionpool.pyc”, line 787, in urlopen
  File “urllib3/connectionpool.pyc”, line 488, in _make_request
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1007)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/adapters.py”, line 667, in send
  File “urllib3/connectionpool.pyc”, line 841, in urlopen
  File “urllib3/util/retry.pyc”, line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘gitlab.pavlovia.org’, port=443): Max retries exceeded with url: /oauth/token?client_id=944b87ee0e6b4f510881d6f6bc082f64c7bba17d305efdb829e6e0e7ed466b34&code=6300e8275970c8bed23b956d8232adc3ab8c210742928182d39527b0a87e57f6&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fgitlab.pavlovia.org%2F&code_verifier=nZjWBudu9sR18Pcqf2vtDbUA27u~IHqOC.b_A5fVSrShdP.MWg90YhfgBuK2okRTSBVxKaW0Usc9dElQ9KF7Im_McDfqRkWoqvrc7teM7 (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1007)’)))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/pavlovia_ui/_base.py”, line 136, in getAccessTokenFromURL
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/api.py”, line 115, in post
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/api.py”, line 59, in request
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/sessions.py”, line 589, in request
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/sessions.py”, line 703, in send
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/adapters.py”, line 698, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘gitlab.pavlovia.org’, port=443): Max retries exceeded with url: /oauth/token?client_id=944b87ee0e6b4f510881d6f6bc082f64c7bba17d305efdb829e6e0e7ed466b34&code=6300e8275970c8bed23b956d8232adc3ab8c210742928182d39527b0a87e57f6&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fgitlab.pavlovia.org%2F&code_verifier=nZjWBudu9sR18Pcqf2vtDbUA27u~IHqOC.b_A5fVSrShdP.MWg90YhfgBuK2okRTSBVxKaW0Usc9dElQ9KF7Im_McDfqRkWoqvrc7teM7 (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1007)’)))

Please let me know if you have any thoughts. Thank you!

The newest version (2025.1.2) should fix this issue.

Hi Geller, thank you for your reply. However, I didn’t find 2025.1.2 on GitHub. If you are suggesting 2025.2.3 (the latest on GitHub), I have tried, but it still shows errors. And the error message is the same as the first post.