httprd icon indicating copy to clipboard operation
httprd copied to clipboard

Windows OSError: screen grab failed

Open peratik opened this issue 2 years ago • 1 comments

Hi,

OS Windows Server 2019 Standard Python 3.11.5

Error:

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\httprd\httprd.py", line 274, in async_worker
    image = PIL.ImageGrab.grab()
            ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Desktop\httprd\env\Lib\site-packages\PIL\ImageGrab.py", line 47, in grab
    offset, size, data = Image.core.grabscreen_win32(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: screen grab failed

Please advise.

peratik avatar Aug 26 '23 11:08 peratik

@peratik May be related to https://stackoverflow.com/a/61151739

bitrate16 avatar Aug 31 '23 19:08 bitrate16