omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    bugs homescreen apps launcher
    5
    15
    6262
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dude_scott
      dude_scott last edited by dude_scott

      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

      1 Reply Last reply Reply Quote 0
      • brumm
        brumm last edited by brumm

        Same here. Workaround -> you can use Shortcuts > run pythonista > /path/script.py > share > homescreen

        1 Reply Last reply Reply Quote 0
        • dude_scott
          dude_scott last edited by

          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!

          stephen 1 Reply Last reply Reply Quote 1
          • stephen
            stephen @dude_scott last edited by

            @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 subFolder Scripts of root folder Scripts

            • Scripts/
              • Scripts/
                • Read_Notes.py

            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 to sys.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 use dot paths for example

            ./Read_Notes.py

            then the root path should replace the .

            1 Reply Last reply Reply Quote 0
            • 7upser
              7upser last edited by 7upser

              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.

              stephen 1 Reply Last reply Reply Quote 1
              • stephen
                stephen @7upser last edited by

                @7upser
                nice catch! are you saying that after true restart only 1 total shorcuts will work? or it will only work 1 time then break again?

                1 Reply Last reply Reply Quote 0
                • 7upser
                  7upser last edited by 7upser

                  Hi,

                  I have 10 Shortcuts and all are working. But i have to power off my iPad for creating EACH Shortcut.

                  stephen 1 Reply Last reply Reply Quote 0
                  • stephen
                    stephen @7upser last edited by

                    @7upser

                    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..

                    Image

                    1 Reply Last reply Reply Quote 0
                    • 7upser
                      7upser last edited by 7upser

                      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?)

                      tag

                      1 Reply Last reply Reply Quote 0
                      • stephen
                        stephen last edited by

                        @7upser i still need to install 13.4.x 😅🤓 didnt realise the update THANKS!

                        1 Reply Last reply Reply Quote 0
                        • 7upser
                          7upser last edited by

                          Hope it will work.
                          But you have still to restart your iPad for each Shortcut.

                          stephen 1 Reply Last reply Reply Quote 0
                          • stephen
                            stephen @7upser last edited by

                            @7upser

                            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 😕😅

                            1 Reply Last reply Reply Quote 0
                            • Drizzel
                              Drizzel last edited by

                              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 :)

                              stephen 1 Reply Last reply Reply Quote 0
                              • stephen
                                stephen @Drizzel last edited by

                                @Drizzel well lucky for us its just the homescreen shortcuts that got effected ... so far lol

                                1 Reply Last reply Reply Quote 0
                                • 7upser
                                  7upser last edited by

                                  @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 🤫

                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post
                                  Powered by NodeBB Forums | Contributors