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.


    Pythonista crashes after installing Plotly through StaSh

    Pythonista
    3
    16
    4862
    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.
    • isaackoz
      isaackoz @JonB last edited by

      @JonB

      Instantly. I mean I don’t mind losing my work (it was terrible code anyways lmao), but if other people have this problem I want the devs to be at least aware of it and hopefully a workaround to be available.

      If you have any other ideas I’m down to try, otherwise I’ll reinstall it tomorrow.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB @isaackoz last edited by

        @isaackoz now that you have used pythonista3, try rebooting, then open extension first. Maybe try safe mode again.

        also, did you ever buy pythonista2? You can reinstall that and get to the files.

        Finally, you could back up the app, reinstall it, then reinstall the backed up files.

        isaackoz 1 Reply Last reply Reply Quote 0
        • isaackoz
          isaackoz @JonB last edited by

          @JonB
          Rebooting and trying the extension didn’t work.

          I don’t have Pythonista 2 so that’s a no go.

          How would I go about backing the files up like you said?

          cvp 1 Reply Last reply Reply Quote 0
          • cvp
            cvp @isaackoz last edited by cvp

            @isaackoz When you say Pythonista crashes immediately, it has perhaps enough time to process something.
            If you can write a small script renaming site-package folder and put this script in iCloud Drive/Pythonista3, you could try to start it from safari via pythonista3://name?action=run&root=icloud.
            Of course, you need to remove the app from the tasks list before and after.
            Perhaps a silly idea

            isaackoz 1 Reply Last reply Reply Quote 0
            • isaackoz
              isaackoz @cvp last edited by

              @cvp

              huh. This could actually possibly work. Do you know what the exact path to the site modules is? I think it was the third one Ploty was installed to.

              cvp 1 Reply Last reply Reply Quote 0
              • cvp
                cvp @isaackoz last edited by

                @isaackoz to test the feasibility, you could begin with a little script that creates a little file in iCloud Drive, just to see if this script runs until its end

                isaackoz 1 Reply Last reply Reply Quote 0
                • isaackoz
                  isaackoz @cvp last edited by

                  @cvp

                  Ah true, good idea. I’ll try that tomorrow morning and let you know how it goes.

                  cvp 1 Reply Last reply Reply Quote 0
                  • cvp
                    cvp @isaackoz last edited by

                    @isaackoz ```
                    iCloud_path = ('/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/test.txt')
                    fil = open(iCloud_path,mode='wt')
                    fil.write('test')
                    fil.close()

                    isaackoz 1 Reply Last reply Reply Quote 0
                    • isaackoz
                      isaackoz @cvp last edited by

                      @cvp

                      I tried this and unfortunately it crashes before it runs. Oh well, guess it’s a reminder why you should back up your code haha. Thanks for helping me try though. Gonna just reinstall the app now.

                      cvp 1 Reply Last reply Reply Quote 0
                      • cvp
                        cvp @isaackoz last edited by

                        @isaackoz 😢

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

                          did you try an itunes backup (does iExplorer work on recent devices? )

                          isaackoz 1 Reply Last reply Reply Quote 0
                          • isaackoz
                            isaackoz @JonB last edited by

                            @JonB

                            Unfortunately I saved it to my iPhone storage and not the iCloud storage haha. And I didn’t have any backups either so an iTunes backup wouldn’t do anything.

                            So basically I learned the hard way to save all your work in the iCloud folder because it stays if you delete the app and because... why not!

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