Skip to content

Windows OSError: screen grab failed #1

@peratik

Description

@peratik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions