Forum Archive

few more pythonista3 bugs

JonB

1) when using python2, PIL Image.Image.show() fails

img = Image.open('Test_Lenna')
>>> img.show()
Traceback (most recent call last):
    File <string>, line 1, in <module>:
        # Source code unavailable

    File /var/mobile/Containers/Bundle/Application/0745BFF1-B807-4C17-BDD5-27C4E8EAD739/Pythonista3.app/Frameworks/PythonistaKit.framework/pylib/site-packages/PIL/Image.py, line 1755, in show:
        _show(self, title=title, command=command)

    File /var/mobile/Containers/Bundle/Application/0745BFF1-B807-4C17-BDD5-27C4E8EAD739/Pythonista3.app/Frameworks/PythonistaKit.framework/pylib/site-packages/PIL/Image.py, line 2519, in _show:
        _showxv(image, **options)

    File /var/mobile/Containers/Bundle/Application/0745BFF1-B807-4C17-BDD5-27C4E8EAD739/Pythonista3.app/Frameworks/PythonistaKit.framework/pylib/site-packages/PIL/Image.py, line 2523, in _showxv:
        from PIL import ImageShow

    File /var/mobile/Containers/Bundle/Application/0745BFF1-B807-4C17-BDD5-27C4E8EAD739/Pythonista3.app/Frameworks/PythonistaKit.framework/pylib/site-packages/PIL/ImageShow.py, line 25:
                ̲if not os.path.exists(temp_img_dir):
exceptions.IndentationError: unexpected indent

Webmaster4o

I noticed this myself recently, but forgot to report it.

dgelessus

@JonB said:

If it's the one I wrote, please do post that on my GitHub then :)