psychopy.org | Reference | Downloads | Github

PsychoPy does not open "configobj.ConfigObjError: Parsing failed with several errors"

PsychoPy 2020 failed to open. No splash screen, no response at all when I click on the app. I uninstalled and installed again. Still fails to open.

Uninstalled PsychoPy, uninstalled Python, reinstalled both. Same issue

“C:\Program Files\PsychoPy3\python.exe” -m psychopy.app.psychopyApp

in the command prompt (as per Troubleshooting pages) produces:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files\PsychoPy3\lib\runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\__init__.py", line 44, in <module>
    from psychopy.preferences import prefs
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\preferences\__init__.py", line 13, in <module>
    from . import preferences as prefsLib
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\preferences\preferences.py", line 263, in <module>
    prefs = Preferences()
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\preferences\preferences.py", line 67, in __init__
    self.loadAll()
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\preferences\preferences.py", line 166, in loadAll
    self.appDataCfg = self.loadAppData()
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\preferences\preferences.py", line 220, in loadAppData
    encoding='UTF8', configspec=appDataSpec)
  File "C:\Program Files\PsychoPy3\lib\site-packages\configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "C:\Program Files\PsychoPy3\lib\site-packages\configobj.py", line 1318, in _load
    raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 101.

Resolved following steps here: Standalone PsychoPy3 will not open

(note comment regarding the suggested code in the Troubleshooting pages producing the same error)