I only try to get a photo attached in a mail and I get an error...
When I first save the image in the camera roll and I use the same script to get it, no error
Help needed
Thanks
# coding: utf-8
import appex
img = appex.get_image(image_type='pil')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/var/mobile/Containers/Shared/AppGroup/BC53E549-355D-4E77-BC46-64C3D3E0BDAF/Pythonista3/Documents/x.py", line 3, in
img = appex.get_image(image_type='pil')
File "/var/containers/Bundle/Application/606A7B2D-313E-48DB-BEB5-79336C85A91D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/appex.py", line 97, in get_image
image_attachments = get_attachments('public.image')
File "/var/containers/Bundle/Application/606A7B2D-313E-48DB-BEB5-79336C85A91D/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/appex.py", line 38, in get_attachments
input_items = get_input()
SystemError: