uqfoundation / pathos

parallel graph management and execution in heterogeneous computing
http://pathos.rtfd.io
Other
1.38k stars 89 forks source link

io.UnsupportedOperation: seek #155

Closed prabhaaharan closed 5 years ago

prabhaaharan commented 5 years ago

I am trying download all the images given in the dataset.

kaggle datasets download -d crowdflower/twitter-user-gender-classification

I ran this script

image_extraction.zip

But I got issues after running for 150 dataset which is part of 20k dataset.

_Traceback (most recent call last): File "E:/image_extraction.py", line 29, in get_images(imgURL[i],uniID[i],gender[i],i) File "E:/image_extraction.py", line 20, in get_images k=imageio.imread(image_url) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\functions.py", line 221, in imread reader = read(uri, format, "i", kwargs) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\functions.py", line 143, in get_reader return format.get_reader(request) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\format.py", line 174, in get_reader return self.Reader(self, request) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\format.py", line 224, in init self._open(self.request.kwargs.copy()) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\plugins\pillowmulti.py", line 57, in _open return PillowFormat.Reader._open(self) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\plugins\pillow.py", line 132, in _open if hasattr(self._im, "n_frames"): File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\PIL\GifImagePlugin.py", line 96, in n_frames self.seek(self.tell() + 1) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\PIL\GifImagePlugin.py", line 128, in seek self._seek(f) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\PIL\GifImagePlugin.py", line 158, in _seek self.fp.seek(self.__offset) File "C:\Users\prabhu\AppData\Local\Programs\Python\Python37\lib\site-packages\imageio\core\request.py", line 513, in seek oriseek(i, mode) io.UnsupportedOperation: seek

Need Help to resolve this.

mmckerns commented 5 years ago

@Prabhaaharan: I don't see this being a pathos issue... I'm closing this issue, but feel free to reopen it if you have more information... (e.g. you can produce a minimal self-contained bit of code that demonstrates the error you are seeing, and it demonstrates that pathos is the cause).