# PsychoPy doesn't open

**URL:** <https://discourse.psychopy.org/t/psychopy-doesnt-open/39998>\
**Category:** Other\
**Created:** [May 13, 2024, 3:41am UTC](https://discourse.psychopy.org/t/psychopy-doesnt-open/39998 "2024-05-13T03:41:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haku](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@Haku](https://discourse.psychopy.org/u/Haku)\
**Post date:** [May 13, 2024, 3:41am UTC](https://discourse.psychopy.org/t/psychopy-doesnt-open/39998/1 "2024-05-13T03:41:50Z")

</div>

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).

 ![微信截图_20240513113408](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/a/ba03d0c3a4aacad4eef592a4a45d64274333525a.png)

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!
