Unhandled internal error when trying to open "preferences"

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

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2020.2.10
Standard Standalone? (y/n) yes
What are you trying to achieve?:

I’m trying to open the “preferences” tab.

What did you try to make it work?:

I clicked on preferences under “file”

What specifically went wrong when you tried that?:

I get the following error message (unhandled internal error):

Traceback (most recent call last):
File “C:\Users\Gert\Anaconda3\envs\psychopy\lib\site-packages\psychopy\app_psychopyApp.py”, line 767, in showPrefs
prefsDlg = PreferencesDlg(app=self)
File “C:\Users\Gert\Anaconda3\envs\psychopy\lib\site-packages\psychopy\app\preferencesDlg.py”, line 543, in init
devnames = sorted(sound.getDevices(‘output’))
File “C:\Users\Gert\Anaconda3\envs\psychopy\lib\site-packages\psychopy\sound\backend_pyo.py”, line 135, in getDevices
inputs, outputs = get_devices_infos()
File “C:\Users\Gert\Anaconda3\envs\psychopy\lib\site-packages\psychopy\sound\backend_pyo.py”, line 93, in get_devices_infos
devices = _query_devices()
File “C:\Users\Gert\Anaconda3\envs\psychopy\lib\site-packages\psychopy\sound\backend_pyo.py”, line 86, in _query_devices
info[v.strip().split(": “)[0]] = v.strip().split(”: ")[1]
IndexError: list index out of range

It seems that something is wrong regarding the sound input/output. I however can not open the preferences tab anymore.