Errors due to deprecation of PIL.PyAccess
Opened this issue · 1 comments
Swazib0y commented
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_ACCESSSince 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.
Juppstein commented
I suppose this fix has never gone through as the issue is still a thing?