Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on kde fedora 41 #897

Open
tct123 opened this issue Dec 15, 2024 · 0 comments
Open

Doesn't work on kde fedora 41 #897

tct123 opened this issue Dec 15, 2024 · 0 comments

Comments

@tct123
Copy link

tct123 commented Dec 15, 2024

My Python code is:

import pyautogui as gui

gui.click("rmwatchlater/imgs/menue.png")

My Error is:

Traceback (most recent call last):
  File "/home/anonym/rmwatchlater/new.py", line 3, in <module>
    gui.click("rmwatchlater/imgs/menue.png")
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anonym/.local/lib/python3.13/site-packages/pyautogui/__init__.py", line 594, in wrapper
    returnVal = wrappedFunction(*args, **kwargs)
  File "/home/anonym/.local/lib/python3.13/site-packages/pyautogui/__init__.py", line 985, in click
    x, y = _normalizeXYArgs(x, y)
           ~~~~~~~~~~~~~~~~^^^^^^
  File "/home/anonym/.local/lib/python3.13/site-packages/pyautogui/__init__.py", line 663, in _normalizeXYArgs
    location = locateOnScreen(firstArg)
  File "/home/anonym/.local/lib/python3.13/site-packages/pyautogui/__init__.py", line 172, in wrapper
    return wrappedFunction(*args, **kwargs)
  File "/home/anonym/.local/lib/python3.13/site-packages/pyautogui/__init__.py", line 210, in locateOnScreen
    return pyscreeze.locateOnScreen(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/anonym/.local/lib/python3.13/site-packages/pyscreeze/__init__.py", line 404, in locateOnScreen
    screenshotIm = screenshot(region=None)
  File "/home/anonym/.local/lib/python3.13/site-packages/pyscreeze/__init__.py", line 628, in _screenshot_linux
    raise Exception(
        'To take screenshots, you must install Pillow version 9.2.0 or greater and gnome-screenshot by running `sudo apt install gnome-screenshot`'  # noqa
    )
Exception: To take screenshots, you must install Pillow version 9.2.0 or greater and gnome-screenshot by running `sudo apt install gnome-screenshot`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant