Pyautogui and pyscreeze crash with windll.user32.ReleaseDC failed

Well I know it’s not particularly helpful; but for me, this error was fixed simply by running my code on 3.7 instead of 3.8. There shouldn’t be any changes you have to make to your code, however (unless you were using walrus!)

On Windows, this can be done with the -3.7 command line flag, as long as 3.7 is installed

Leave a Comment