Forum Archive

Camera Scanner example crashes Pythonista

ihf

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

Is this ObjC example dependent on IOS v9?

ihf

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

JonB

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

JonB

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.

ihf

Bingo! That worked. Thank you!