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 crash preventing access to app

    Pythonista
    strings decode crash on open encode crash
    1
    2
    1524
    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.
    • Strassboom
      Strassboom last edited by

      I was decoding some base64 strings in Pythonista while in debug, when my app suddenly crashed. Now whenever I attempt to reopen the app, it tries to load this tab of code, and will crash before it recognizes any of my tapping to close said tab.

      All access to my code written within Pythonista is now cut off and neither swiping the app up in the multitasking view nor shutting down and turning on my iPhone has yielded any changes.
      My specs:

      iPhone 7
      iOS 13.1.2

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

        Thanks to @tomkirn for providing the solution at this earlier question: https://forum.omz-software.com/topic/5835/crash-on-open

        If you wanna access the file contents again, in the same directory do:

        
        with open("{filename}.py","r") as r:
        	oldcontent = r.readlines()
        	with open("{otherfilename}.txt","w+") as f:
        		f.writelines(oldcontent)
        

        To Ensure your editor doesn’t load it as a py file and crash, and also so that you may pick out the part of the file you believe is causing the crash to occur!

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