You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trouble occur when reading some website address as follow, but same address is ok by skimage.io import imread:
File "/usr/local/lib/python3.8/site-packages/imageio/v2.py", line 359, in imread
with imopen(uri, "ri", **imopen_args) as file:
File "/usr/local/lib/python3.8/site-packages/imageio/core/imopen.py", line 196, in imopen
plugin_instance = candidate_plugin(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 104, in init
with Image.open(request.get_file()):
File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 3133, in open
im = _open_core(fp, filename, prefix, formats)
File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 3119, in _open_core
im = factory(fp, filename)
File "/usr/local/lib/python3.8/site-packages/PIL/ImageFile.py", line 116, in init
self._open()
File "/usr/local/lib/python3.8/site-packages/PIL/ImImagePlugin.py", line 153, in _open
s = s + self.fp.readline()
AttributeError: 'SeekableFileObject' object has no attribute 'readline'
The text was updated successfully, but these errors were encountered:
trouble occur when reading some website address as follow, but same address is ok by skimage.io import imread:
File "/usr/local/lib/python3.8/site-packages/imageio/v2.py", line 359, in imread
with imopen(uri, "ri", **imopen_args) as file:
File "/usr/local/lib/python3.8/site-packages/imageio/core/imopen.py", line 196, in imopen
plugin_instance = candidate_plugin(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 104, in init
with Image.open(request.get_file()):
File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 3133, in open
im = _open_core(fp, filename, prefix, formats)
File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 3119, in _open_core
im = factory(fp, filename)
File "/usr/local/lib/python3.8/site-packages/PIL/ImageFile.py", line 116, in init
self._open()
File "/usr/local/lib/python3.8/site-packages/PIL/ImImagePlugin.py", line 153, in _open
s = s + self.fp.readline()
AttributeError: 'SeekableFileObject' object has no attribute 'readline'
The text was updated successfully, but these errors were encountered: