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.
Home Screen Apps Error: File Not Found
-
I'm pretty new to Pythonista, but I'm having a reoccurring issue when trying to create home screen icons for my scripts. Whenever I launch the script from the home screen, I get an error that the py file isn't found. I tried to find other posts on this issue, but they all relate to icloud. My files are all located locally on my iphone in a folder called scripts.
For example: I have a script call Read_Notes.py and the path is Scripts/Read_Notes.py, when I run the script from the home screen the error message reads "The file 'Scripts/Scripts/Read_Notes.py' could not be found."
Not sure why the path is incorrect. Any ideas?
TL;DR Local Python files not able to launch from home screen. Looks like the file path to the script is added incorrectly.launche
-
Same here. Workaround -> you can use Shortcuts > run pythonista > /path/script.py > share > homescreen
-
Yeah, I did that originally, but then I tried changing the name to "Read_Notes.py" to "ReadNotes.py" and it seems to be working fine now. I didn't love the shortcuts method because has to launch both the Shortcuts app and Pythonista, but that's not a huge deal.
Thanks for the input!
-
@dude_scott said:
For example: I have a script call Read_Notes.py and the path is Scripts/Read_Notes.py, when I run the script from the home screen the error message reads "The file 'Scripts/Scripts/Read_Notes.py' could not be found."
here you state that
ReadNotes.py
is in subFolderScripts
of root folderScripts
- Scripts/
- Scripts/
- Read_Notes.py
- Scripts/
at first you only mention a root only.
sys.path
probably recieved the path exclusivly and then inclusivly appended root. by renaming file you created a new entry tosys.path
thus not using the previous anymore. if this is what happend in your case a way to avoid this in the future is to usedot paths
for example./Read_Notes.py
then the root path should replace the
.
- Scripts/
-
I had the same Problem with the path doubled.
The weird thing is, if you turn your iPad Power off and on (true restart) it works for 1 'Home Screen Icon'.
Maybe a cache problem, or something else. -
@7upser
nice catch! are you saying that aftertrue
restart only 1 total shorcuts will work? or it will only work 1 time then break again? -
Hi,
I have 10 Shortcuts and all are working. But i have to power off my iPad for creating EACH Shortcut.
-
Good Morrow!
This is a verry odd bug. i cannot even create one. it seems to be an issue with file recognition.. App miss interprets yours and doesnt even see a script i have open. all i get is this message..
-
Even after turning off the tablet and on again for each shortcut?
I have iPadOS 13.4.1 and with this it works.This is the only message i got.
(in english: open this in Pythonista?) -
@7upser i still need to install 13.4.x 😅🤓 didnt realise the update THANKS!
-
Hope it will work.
But you have still to restart your iPad for each Shortcut. -
i still have not updated but i currently dont have any home screen shortcuts. when i went to recreate that i found my app has a bug that renders it incapable of even creating them 😕😅
-
seems like this bug is exclusive to iPadOS. I don't have any issues on my ipad mini 2 on ios 12.4.6.
@7upser it's nice to see another german here :) -
@Drizzel well lucky for us its just the homescreen shortcuts that got effected ... so far lol
-
@Drizzel, you could be right about iPadOS i test it at my iPhone with iOS 12.4.5 and then 12.4.6 and it works. There is also no popup.
About the german one, nobody should know about this, before the stupid one (me) send a screenshot 🤫