ModuleNotFoundError: No module named psychopy.iohub.client.connect'

This is a wierd one. I get this error when I run an EXE file that I created with pyinstaller. It comes up only when I run the program, and is not an error code I found when I was creating the installer. Here it is:

Blockquote Microsoft Windows [Version 10.0.19044.2006]
(c) Microsoft Corporation. All rights reserved.

C:\Users\micha>cd C:\Users\micha\DANVA2\working pdf\DANVAII\dist

C:\Users\micha\DANVA2\working pdf\DANVAII\dist>danva2.exe
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. Contribute - pygame wiki
Warning: display device module could not be imported.
Traceback (most recent call last):
File “psychopy\iohub\devices_init_.py”, line 956, in
File “psychopy\iohub\devices_init_.py”, line 933, in import_device
AttributeError: module ‘psychopy.iohub.devices.display’ has no attribute ‘Display’
Traceback (most recent call last):
File “DANVA2.py”, line 155, in
File “psychopy\contrib\lazy_import.py”, line 117, in call
File “psychopy\contrib\lazy_import.py”, line 86, in _resolve
File “psychopy\contrib\lazy_import.py”, line 201, in _import
ModuleNotFoundError: No module named ‘psychopy.iohub.client.connect’
[33120] Failed to execute script ‘DANVA2’ due to unhandled exception!
1.6030 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
9.7774 WARNING User requested fullscreen with size [1920 1080], but screen is actually [1440, 900]. Using actual size