You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pyautogui does not function on the latest raspberry piOS based on Debian Bookworm.
I've only tested the piOS, but other Debian Bookworm releases may share the same issue. Pyautogui did work on Debian Bullseye.
Steps to replicate:
Flash a fresh standard full x64 Bookworm based piOS released 10-10-2023 and setup.
Create a python venv and activate it
pip install pyautogui
python
import pyautogui
pyautogui.position() -> (0,0)
You can also do the following :
After a fresh install, run "sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED" to disable pip protection (please don't do this if you intend to keep using your piOS installation afterwards)
sudo pip install pyautogui
sudo python
import pyautogui
pyautogui.position() -> (0,0)
Problems also persist with pip3.
Mouse movement, clicks and identify position do not function: nothing happens but no errors are raised.
Position will always be 0,0 (or 500,500 depending on your setup).
This issue also affects another mouse module https://pypi.org/project/mouse/ with identical results for their "mouse.get_position".
The text was updated successfully, but these errors were encountered:
"the move to using Wayland rather than X11 as the display system."
PyAutoGui (and Mouse) use X11 api for their linux support.
As such, the issue is addressed in the following thread: #111
I redirect any further discussion regarding piOS or Debian 12.0>= compatibility to the aforementioned Wayland support thread.
The Wayland support thread offer some potential alternatives to pyautogui and mouse functions. Some users in the thread have suggested the following modules: evemu, python-evdev, keyboard, ydotool. Please read the aforementioned thread for further discussion about the features and limitations of each module.
Pyautogui does not function on the latest raspberry piOS based on Debian Bookworm.
I've only tested the piOS, but other Debian Bookworm releases may share the same issue. Pyautogui did work on Debian Bullseye.
Steps to replicate:
You can also do the following :
Problems also persist with pip3.
Mouse movement, clicks and identify position do not function: nothing happens but no errors are raised.
Position will always be 0,0 (or 500,500 depending on your setup).
This issue also affects another mouse module https://pypi.org/project/mouse/ with identical results for their "mouse.get_position".
The text was updated successfully, but these errors were encountered: