UnicodeDecodeError in _appex.get_input()
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
_appexmodel is not really meant to be used as it is the backend for the
appexwrapper 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?