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 3.4 error: KeyboardInterrupt

    Pythonista
    4
    7
    171
    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.
    • DavinE
      DavinE last edited by

      Hello all,

      I have the following error in the new Pythonista version which worked in the previous version:

      Traceback (most recent call last):
      File
      "/private/var/mobile/Containers/
      Shared/AppGroup/
      7502F935-14D3-4DA1-9D3B-1D998BE8A1E2/
      Pythonista3/Documents/BarcodeScanner/
      Barcode Scanner.py"
      line 1202, in
      checkCloseButton
      ACTION Button
      sys.exit(1)
      File
      "/var/containers/Bundle/
      Application/872E2289-CF4B-43A6-BA49-
      E163FB9FA4F0/Pythonista3.app/Frameworks/
      Py3Kit. framework/pykit_startup.py"
      line
      33, in exit
      raise KeyboardInterrupt(f'Exit:
      {arg}')
      KeyboardInterrupt: Exit: 1
      
      BSoD Q 2 Replies Last reply Reply Quote 0
      • BSoD
        BSoD @DavinE last edited by

        @DavinE
        Me too.
        sys.exit() always raise the key interrupt error.

        DavinE 1 Reply Last reply Reply Quote 0
        • DavinE
          DavinE @BSoD last edited by

          @BSoD said in Pythonista 3.4 error: KeyboardInterrupt:

          @DavinE
          Me too.
          sys.exit() always raise the key interrupt error.

          How did you get around that ?
          Is there an alternative ?

          BSoD 1 Reply Last reply Reply Quote 0
          • BSoD
            BSoD @DavinE last edited by

            @DavinE
            No.
            But this error only occurs at the end of the program and has no actual impact.
            So, until the official fixes this issue, you can temporarily ignore this error.

            DavinE JonB 2 Replies Last reply Reply Quote 0
            • DavinE
              DavinE @BSoD last edited by

              @BSoD said in Pythonista 3.4 error: KeyboardInterrupt:

              @DavinE
              No.
              But this error only occurs at the end of the program and has no actual impact.
              So, until the official fixes this issue, you can temporarily ignore this error.

              Not in my case...

              It crash at the middle why ever... 😤

              1 Reply Last reply Reply Quote 0
              • Q
                quer87 @DavinE last edited by

                @DavinE

                hi there
                i also got the same error
                since i updated pythonista3 latest v3.4

                iphone 13 mini / iOS v15.6.1

                any py program with input function has same results

                in my case
                main process is ok but the last sys.exit() got NG


                Traceback (most recent call last):

                line 647, in <module>
                sys.exit()

                line 33, in exit
                raise KeyboardInterrupt(f'Exit: {arg}')

                KeyboardInterrupt: Exit: 0

                after that console is unstable

                i wish fix that ...

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

                  @BSoD one workaround would be to simply monkeypatch sys so that

                  def exit ():
                  pass

                  sys.exit = exit

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