Experiment doesn't launch. PsychoPy encountered an unhandled internal error!

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2022.1.2
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?:
My previously working experiment program cannot be launched when clicking on it. When launching psychoPy builder first and then open the experiment file in it, the experiment was loaded but I received an error message saying “PsychoPy encountered an unhandled internal error! Send the report under “Details” to the developer…”

Below are the “detail” message:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 663, in fileOpen
self.updateReadme()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 805, in updateReadme
possibles = glob.glob(os.path.join(dirname, ‘readme*’))
File “C:\Program Files\PsychoPy3\lib\glob.py”, line 20, in glob
return list(iglob(pathname, recursive=recursive))
File “C:\Program Files\PsychoPy3\lib\glob.py”, line 71, in _iglob
for dirname in dirs:
File “C:\Program Files\PsychoPy3\lib\glob.py”, line 71, in _iglob
for dirname in dirs:
File “C:\Program Files\PsychoPy3\lib\glob.py”, line 72, in _iglob
for name in glob_in_dir(dirname, basename, dironly):
File “C:\Program Files\PsychoPy3\lib\glob.py”, line 83, in _glob1
return fnmatch.filter(names, pattern)
File “C:\Program Files\PsychoPy3\lib\fnmatch.py”, line 52, in filter
match = _compile_pattern(pat)
File “C:\Program Files\PsychoPy3\lib\fnmatch.py”, line 46, in _compile_pattern
return re.compile(res).match
File “C:\Program Files\PsychoPy3\lib\re.py”, line 233, in compile
return _compile(pattern, flags)
File “C:\Program Files\PsychoPy3\lib\re.py”, line 301, in _compile
p = sre_compile.compile(pattern, flags)
File “C:\Program Files\PsychoPy3\lib\sre_compile.py”, line 562, in compile
p = sre_parse.parse(p, flags)
File “C:\Program Files\PsychoPy3\lib\sre_parse.py”, line 855, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File “C:\Program Files\PsychoPy3\lib\sre_parse.py”, line 416, in _parse_sub
not nested and not items))
File “C:\Program Files\PsychoPy3\lib\sre_parse.py”, line 765, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File “C:\Program Files\PsychoPy3\lib\sre_parse.py”, line 416, in _parse_sub
not nested and not items))
File “C:\Program Files\PsychoPy3\lib\sre_parse.py”, line 553, in _parse
raise source.error(msg, len(this) + 1 + len(that))
sre_constants.error: bad character range t-b at position 10

What folder is your experiment in? It looks as though PsychoPy is looking in the same folder as the experiment for it’s README file, but while doing so is hitting a file with a character which glob (the Python package which PsychoPy uses for this kind of folder searching) isn’t built to handle. What other files are in there?

I’ve added some code which may fix this: