Forum Archive

Problem to access photos

castro

I have a problem on my new iPhone8 (ios 12.1.1)

Trying to access photos via the code:

import paramiko, photos, os, tempfile, clipboard, ui,appex
imga = photos.pick_asset()
img=imga.get_image(True)

I have error "NoneType object has no attribute 'decode' ".
But I have it only for "native" photos, everithing works nice with images added to the Photo Library from sources other than iphone camera: screenshots, other apps etc.

I have this error even in the standard example misc/Image Effects.py. Reinstalletion of the Pythonista doesn't help.

Could experts help me to clarify the problem?

At my old iPhone SE at the sae iOS everything is fine.

JonB

Can you Print Full Traceback? we need line number.

castro

sure

omz

Looks like a problem with the HEIF decoder, I'll look into it.

castro

Thank you! I'll wait.

castro

Any news?

omz

@castro Not yet, sorry, I'm currently working on other things, but it's on my todo list for 3.3.