PsychoPy does not log into Pavlovia

I am having issues connecting PsychoPy to Pavlovia. When I click the ‘Login to Pavlovia’ tab or use the Icon in PsychoPy Builder nothing happens and I get the below error message. Any help as to what is going wrong?

It does not seem to be an issue with the firewall. I’ve tried uninstalling PsychoPy and re-installing different versions (both 64 and 32 bit). I have valid internet connection and can run experiments from Psychopy and connect to Pavlovia using the website. I just don’t seem to be able to get PsychoPy to connect with Pavlovia directly. My lap-top is stand-alone and uses Windows 7. Any help would be very much appreciated.

1300.5208 INFO Loaded monitor calibration from [‘2020_05_06 14:42’]
1656.5962 INFO OAuthBrowser.onNewURL: about:blank
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui_base.py”, line 109, in onConnectionErr
raise Exception("{}: No internet connection available.".format(event.GetString()))
Exception: INET_E_DOWNLOAD_FAILURE: No internet connection available.
1658.0385 INFO OAuthBrowser.onNewURL: https://gitlab.pavlovia.org/oauth/authorize?client_id=4bb79f0356a566cd7b49e3130c714d9140f1d3de4ff27c7583fb34fbfac604e0&redirect_uri=https://gitlab.pavlovia.org/&response_type=token&state=46af0165-fd9d-4d6f-af4e-e8941334dc81