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.


    Camera Scanner example crashes Pythonista

    Pythonista
    2
    6
    2690
    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.
    • ihf
      ihf last edited by

      I was trying to run the Example/ObjC/Camera Scanner but it seems to crash Pythonista after taking a photo. Does anyone have this working?

      ihf 1 Reply Last reply Reply Quote 0
      • ihf
        ihf @ihf last edited by

        Is this ObjC example dependent on IOS v9?

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

          I ran it on another iPad with IOS 9 and it runs fine. I guess any Objc dependent Python is subject to IOS dependencies.

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

            This crashes for me on ios8 with ipad3. I suspect this could be a 32 bit issue, as several things work differently on 32 bit. You should list your device

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

              replace line 80 with:

              data.writeToFile_atomically_(os.path.abspath(filename), True)
              

              I have found that often when using objc it is necessary to pass full pathnames rather than local path.

              1 Reply Last reply Reply Quote 2
              • ihf
                ihf last edited by

                Bingo! That worked. Thank you!

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