Skip to main content

Download client error in Colab

  • 26 April 2024
  • 0 replies
  • 3 views

Hello,


I am having the same issues as below post:



Hello , I am using google colab (python) to fetch images from sentinel-hub …it was working fine and all but the next day when I ran the code again I got an error in the get_data() command … UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fb0c3f0c9b0>
Its weird to me that when I restarted the run session as a whole and closed and reopened the note it worked … (not an efficient solution )
So does anyone know what is this issue and how can I solve it ?

is it related to PIL version @gmilcinski ?


Ali


---------------------------------------------------------------------------
UnidentifiedImageError Traceback (most recent call last)
<ipython-input-102-1b23db34d472> in <module>
5 download_requests = srequest.download_listd0] for request in process_requests]
6
----> 7 data = client.download(download_requests)
8
9 data90].shape

11 frames
/usr/local/lib/python3.7/dist-packages/PIL/Image.py in open(fp, mode)
2894 if mode == "P":
2895 from . import ImagePalette
-> 2896
2897 im.palette = ImagePalette.ImagePalette("RGB", im.im.getpalette("RGB"))
2898 im.readonly = 1

UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f9ed2b7f350>

0 replies

Be the first to reply!

Reply