Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
UnicodeDecodeError in _appex.get_input()
-
Hi
Can somebody help me? I tried to get link from AppStore's Share Sheet Extension, but when I typed _appex.get_input() this occurred:
>>> _appex.get_input() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> SystemError: <built-in function get_input> returned a result with an error set``` How to ignore this error or read bytes?
-
In general the
_appex
model is not really meant to be used as it is the backend for theappex
wrapper module. Try using:import appex print(appex.get_text()) print(appex.get_urls()) # or appex.get_url()
-
@Cethric thanks for the answer, but when I typed print(appex.get_url()) the same error occurred.
-
Which version of Pythonista are you using?
-
@omz 3.0 (300018)
-
@ABLPHA Could you please upgrade to the latest version (3.1) and check if the issue persists?