PsychoPy doesn't open

I installed a stand-alone version of the most recent version of PsychoPy (2024.1.4) , but it doesn’t open, only giving me the splash screen.
My computer is macbook pro but I install and use windows 10.

To solve this, I tried something:

  1. delete userPrefs.cfg and appData.cfg from the %appData% folder, nothing happened
  2. running “C:\Program Files\PsychoPy\python.exe” in cmd but no error info
  3. then I found the error "ImportError: cannot import name ‘appengine’ from ‘requests.packages.urllib3.contrib’ " in my Last_app_load file. To solve it, I tried to install urllib3 (1.26.15) and requests-toolbelt (0.10.1), a solution I got from a website in my country, and then this error disappeared

Now, I can open PsychoPy, but it will close automatically after I close the box in red (you can see it from the following picture).

And the error info in my Last_app_load file became this:

0.3009 DEBUG Opening message catalog C:\Program Files\PsychoPy\lib\site-packages\psychopy\localization..\app\locale\zh_CN\LC_MESSAGE\messages.mo for locale zh_CN
Traceback (most recent call last):
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init_.py”, line 3070, in _dep_map
return self._dep_map
File "C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init
.py", line 2863, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging\requirements.py”, line 35, in init
parsed = _parse_requirement(requirement_string)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging_parser.py”, line 64, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging_parser.py”, line 82, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging_parser.py”, line 120, in _parse_requirement_details
specifier = _parse_specifier(tokenizer)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging_parser.py”, line 217, in _parse_specifier
tokenizer.consume(“WS”)
File “C:\Program Files\PsychoPy\lib\contextlib.py”, line 120, in exit
next(self.gen)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging_tokenizer.py”, line 187, in enclosing_tokens
self.raise_syntax_error(
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging_tokenizer.py”, line 165, in raise_syntax_error
raise ParserSyntaxError(
pkg_resources.extern.packaging._tokenizer.ParserSyntaxError: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
fonttools (>=3.0<4.0) ; (python_version < “3”) and extra == ‘with-fonttools’
~~~~~~^

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

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\Lib\site-packages\psychopy\app\psychopyApp.py”, line 103, in
main()
File “C:\Program Files\PsychoPy\Lib\site-packages\psychopy\app\psychopyApp.py”, line 99, in main
start_app()
File “C:\Program Files\PsychoPy\Lib\site-packages\psychopy\app\psychopyApp.py”, line 27, in start_app
_ = startApp(showSplash=showSplash) # main loop
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app_init_.py”, line 84, in startApp
psychopyAppInstance = PsychoPyApp(
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app_psychopyApp.py”, line 244, in init
self.onInit(testMode=testMode, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app_psychopyApp.py”, line 668, in onInit
activatePlugins()
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\plugins_init
.py", line 1066, in activatePlugins
if not scanPlugins():
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\plugins_init_.py”, line 368, in scanPlugins
dists, _ = pkg_resources.working_set.find_plugins(pluginEnv)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init_.py”, line 904, in find_plugins
resolvees = shadow_set.resolve(req, env, installer)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init_.py”, line 803, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init_.py”, line 2786, in requires
dm = self.dep_map
File "C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init
.py", line 3072, in _dep_map
self.__dep_map = self.compute_dependencies()
File "C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init
.py", line 3082, in compute_dependencies
reqs.extend(parse_requirements(req))
File "C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_init
.py", line 3135, in init
super().init(requirement_string)
File “C:\Users\mac\AppData\Roaming\Python\Python38\site-packages\pkg_resources_vendor\packaging\requirements.py”, line 37, in init
raise InvalidRequirement(str(e)) from e
pkg_resources.extern.packaging.requirements.InvalidRequirement: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
fonttools (>=3.0<4.0) ; (python_version < “3”) and extra == ‘with-fonttools’
~~~~~~^
wx._core.wxAssertionError: C++ assertion “GetEventHandler() == this” failed at …..\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

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

SystemError: <class ‘wx._core.WindowDestroyEvent’> returned a result with an error set
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion “GetEventHandler() == this” failed at …..\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed
2.5656 DEBUG User site-packages dir set to: C:\Users\mac\AppData\Roaming\psychopy3\packages\Python38\site-packages
5.4139 WARNING Font Manager failed to load file C:\Users\mac\AppData\Local\Microsoft\Windows\Fonts\杨任东竹石体-Bold[1].ttf
5.8165 WARNING Font Manager failed to load file C:\Users\mac\AppData\Local\Microsoft\Windows\Fonts\杨任东竹石体-Bold[1].ttf
6.3689 DEBUG Looking for Tobii device configuration file…
6.3698 DEBUG No Tobii device configuration file found.
6.3698 DEBUG Looking for SR Research EyeLink device configuration file…
6.3706 DEBUG No SR Research EyeLink device configuration file found.
6.3706 DEBUG Looking for Gazepoint device configuration file…
6.3714 DEBUG No Gazepoint device configuration file found.
6.3715 DEBUG Looking for PupilLabs device configuration file…
6.3723 DEBUG No PupilLabs device configuration file found.
7.1387 WARNING Font Manager failed to load file C:\Users\mac\AppData\Local\Microsoft\Windows\Fonts\杨任东竹石体-Bold[1].ttf
7.5033 WARNING Font Manager failed to load file C:\Users\mac\AppData\Local\Microsoft\Windows\Fonts\杨任东竹石体-Bold[1].ttf
8.4402 INFO Trying to load audio library: PTB
8.5666 INFO Loaded psychtoolbox audio version 3.0.18.606399524
8.5674 INFO sound is using audioLib: ptb
8.7106 WARNING image was set to update during ISI_load_images Static Component, but that component no longer exists
8.7106 WARNING image was set to update during ISI_load_images Static Component, but that component no longer exists
8.7106 WARNING image was set to update during ISI_load_images Static Component, but that component no longer exists
8.7106 WARNING image was set to update during ISI_load_images Static Component, but that component no longer exists
8.7107 WARNING image was set to update during ISI_load_images Static Component, but that component no longer exists
8.8520 DEBUG PavloviaLoggedIn

I really don’t know what to do now, and could you please help me? Thanks a lot!