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

PIL/Pillow throw error on Android device for Calendar #512

Open
bigretromike opened this issue May 27, 2022 · 1 comment
Open

PIL/Pillow throw error on Android device for Calendar #512

bigretromike opened this issue May 27, 2022 · 1 comment
Labels
Bug A bug that is the fault of Nakamori Kodi 18.x (Leia) It involves Kodi 18 compatibility Kodi 19.x (Matrix) It involves Kodi 19 compatibility mobile only on mobile devices
Milestone

Comments

@bigretromike
Copy link
Owner

2022-05-27 17:33:29.951 T:12129 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'NameError'>
Error Contents: name 'ImageFont' is not defined
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nakamori/lib/windows/ac_calendar.py", line 166, in onInit
self.AddSeriesToCalendar()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nakamori/lib/windows/ac_calendar.py", line 139, in AddSeriesToCalendar
if self.process_series_json(series):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nakamori/lib/windows/ac_calendar.py", line 400, in process_series_json
font = ImageFont.truetype(this_path, int(font_size), encoding='unic')
NameError: name 'ImageFont' is not defined
-->End of Python script error report<--

Make workaround using different text maker or use labels instead of images

@bigretromike bigretromike added Bug A bug that is the fault of Nakamori Kodi 18.x (Leia) It involves Kodi 18 compatibility Kodi 19.x (Matrix) It involves Kodi 19 compatibility mobile only on mobile devices labels May 27, 2022
@bigretromike bigretromike added this to the 4.1-rc milestone May 27, 2022
@bigretromike bigretromike modified the milestones: 4.1-rc, 4.2-rc Oct 15, 2022
@bigretromike
Copy link
Owner Author

<import addon="script.module.pil" version="1.1.7"/>

xbmc/xbmc#21531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug that is the fault of Nakamori Kodi 18.x (Leia) It involves Kodi 18 compatibility Kodi 19.x (Matrix) It involves Kodi 19 compatibility mobile only on mobile devices
Projects
None yet
Development

No branches or pull requests

1 participant