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.
Outliner with drag/drop reordering
-
-
@cvp I presume there is no way for the script to download and undownloaded files when it starts?
-
@cvp the first time I did the share and got that error, I wa copying an equation and I figured that might be a problem. Then I tried again with text and got it again. Iβll try again..perhaps some state was preserved?
-
@ihf it could perhaps if their full names were all known
-
@ihf said:
equation and I figured that might be a problem.
Sure. Perhaps I could support it but needs to be studied
-
@cvp I just killed Pythonista and tried a share of text again and got the same error.
-
-
@ihf said:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 2044-2045: ordinal not in range(128)
Traceback (most recent call last):
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 1698, in init2
self.button_files_action('Open')
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 2559, in button_files_action
self.files_action(sender, act)
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 2633, in files_action
self.pick_open_callback(None)
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 3050, in pick_open_callback
prms = c_prms[1]
IndexError: list index out of rangeIt is not an error during the share, you did open the file in normal outline run?
-
@cvp There was another Todo outline file (different timestamp) with 0 length. I deleted it and tried again and the Share worked fine.
-
@cvp Here is the equation: πΛ2π2=8ππΊπ3
It does not render correctly in the forum. -
@cvp Tried again and got the "list index out of range". The 0 length file is created and that causes the error until it is deleted.
-
@cvp If I try to Share a URL as a URL, it gives an error about there being no text, however; I can Share the URL as text (by highlighting it rather than just long pressing) and then it pastes as an active URL. Being able to paste the URL (or an image ) would be handy.
-
@ihf About special characters, they are actually not supported: during the writing, the error occurs but the file is already created, thus length 0, thus error when reading it.
Your wishes become more and more complex
Todo:
- automatic text search in selected file after files search
- paste shared url
- support special characters
- paste a shared image but that needs to download the file and save it locally as other images
-
Read carefully limitations about special characters and shared images
Version V00.93 - support shared url - support special characters nb: if characters still generate an error, they are automatically replaced by correct ones, using errors="surrogateescape" in open (see Python doc) - support shared image nb: - image added as medium, left - image stored as IMG_paste_yyyymmdd_hhmmss.JPG in current path - tested with photo shared (program receives an image) - safari shares images via their url, not the image it-self - if url ends with .jpg, .jpeg, program downloads the file and process as a shared image
we will soon be celebrating the 6000th line of the script
-
@cvp Wow! Do you sleep? I will test the new features in v0.93. I am seeing this warning message when the script starts:
/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.4) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) ```
-
@ihf never seen that, tried after Pythonista restart?
New imported module =requests which needs urllib3 and chardet -
@cvp I can't seem to reproduce that error so I'll let you know if it returns.
-
-
@cvp I guess that error is repeatable. Perhaps I need to upgrade one of those modules?
-
@cvp is it possible for the Shared image file to be a .png as well as .jpg?