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

Errors due to deprecation of PIL.PyAccess #31

Open
Swazib0y opened this issue Nov 6, 2024 · 0 comments
Open

Errors due to deprecation of PIL.PyAccess #31

Swazib0y opened this issue Nov 6, 2024 · 0 comments

Comments

@Swazib0y
Copy link

Swazib0y commented Nov 6, 2024

It appears in Pillow v11 PIL.PyAccess has been removed (deprecated since V10) and as such running any of the g13 commands results in the following errors:

Traceback (most recent call last):
  File "/usr/local/bin/g13gui", line 3, in <module>
    import g13gui.main
  File "/home/duncan/projects/g13gui/g13gui/main.py", line 7, in <module>
    from g13gui.app import Application
  File "/home/duncan/projects/g13gui/g13gui/app.py", line 4, in <module>
    from g13gui.g13.manager import DeviceManager
  File "/home/duncan/projects/g13gui/g13gui/g13/manager.py", line 22, in <module>
    from g13gui.applet.manager import AppletManager
  File "/home/duncan/projects/g13gui/g13gui/applet/manager.py", line 11, in <module>
    from g13gui.applets.switcher import Switcher
  File "/home/duncan/projects/g13gui/g13gui/applets/switcher.py", line 9, in <module>
    from g13gui.applet.applet import BUTTONS
  File "/home/duncan/projects/g13gui/g13gui/applet/applet.py", line 12, in <module>
    from g13gui.bitwidgets.display import Display
  File "/home/duncan/projects/g13gui/g13gui/bitwidgets/display.py", line 2, in <module>
    import PIL.PyAccess
ModuleNotFoundError: No module named 'PIL.PyAccess'

According to the release notes:

Deprecations
PyAccess and Image.USE_CFFI_ACCESS

Since Pillow’s C API is now faster than PyAccess on PyPy, PyAccess has been deprecated and will be removed in Pillow 11.0.0 (2024-10-15). Pillow’s C API will now be used by default on PyPy instead.

Image.USE_CFFI_ACCESS, for switching from the C API to PyAccess, is similarly deprecated.

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