pyautogui not supported on FreeBSD ?

pyautogui not supported on freebsd ?

OS:
# freebsd-version
14.3-RELEASE-p1
Code:
     # uname -a
     FreeBSD X6 14.3-RELEASE FreeBSD 14.3-RELEASE      releng/14.3-n271432-8c9ce319fef7 GENERIC amd64
I installed pyautogui from ports, it had a newer version than pkg, which also did not work
Code:
     ====> Compressing man pages (compress-man)
     ===>  Installing for py311-pyautogui-0.9.53_2
     ===>  Checking if py311-pyautogui is already installed
     ===>   Registering installation for py311-pyautogui-0.9.53_2
     Installing py311-pyautogui-0.9.53_2...
     root@X6:/usr/ports/x11/py-pyautogui # pkg info -x pyautogui
     py311-pyautogui-0.9.53_2
     
     # python3.11
     Python 3.11.12 (main, Jun  3 2025, 01:06:40) [Clang 18.1.6      (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2      on freebsd14
     Type "help", "copyright", "credits" or "license" for more      information.
     >>> import pyautogui
     Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       File      "/usr/local/lib/python3.11/site-packages/pyautogui/__init__.py",      line 550, in <module>
         raise NotImplementedError("Your platform (%s) is not supported      by PyAutoGUI." % (platform.system()))
     NotImplementedError: Your platform (FreeBSD) is not supported by      PyAutoGUI.
 
Last edited by a moderator:
Python:
# The platformModule is where we reference the platform-specific functions.
if sys.platform.startswith("java"):
    # from . import _pyautogui_java as platformModule
    raise NotImplementedError("Jython is not yet supported by PyAutoGUI.")
elif sys.platform == "darwin":
    from . import _pyautogui_osx as platformModule
elif sys.platform == "win32":
    from . import _pyautogui_win as platformModule
elif platform.system() == "Linux":
    from . import _pyautogui_x11 as platformModule
else:
    raise NotImplementedError("Your platform (%s) is not supported by PyAutoGUI." % (platform.system()))


I think the port needs a patch and some testing.
 
Back
Top