imagebot
imagebot copied to clipboard
Library seems to work with Pillow, which is unspecified in dependencies
It looks like the library requires the Python PIL to work properly, but it is not listed in the project dependencies. Could you tell me which one is the right version to use?
I'm having the following issues with pillow ^7.1.2 (possibly unrelated..?):
Traceback (most recent call last):
File "d:\projects\.virtualenvs\imagescraper-uzbe7zgj-py3.8\lib\site-packages\scrapy\pipelines\files.py", line 481, in media_downloaded
checksum = self.file_downloaded(response, request, info)
File "d:\projects\.virtualenvs\imagescraper-uzbe7zgj-py3.8\lib\site-packages\scrapy\pipelines\images.py", line 106, in file_downloaded
return self.image_downloaded(response, request, info)
File "d:\projects\.virtualenvs\imagescraper-uzbe7zgj-py3.8\lib\site-packages\scrapy\pipelines\images.py", line 110, in image_downloaded
for path, image, buf in self.get_images(response, request, info):
File "d:\projects\.virtualenvs\imagescraper-uzbe7zgj-py3.8\lib\site-packages\scrapy\pipelines\images.py", line 123, in get_images
orig_image = Image.open(BytesIO(response.body))
File "d:\projects\.virtualenvs\imagescraper-uzbe7zgj-py3.8\lib\site-packages\PIL\Image.py", line 2895, in open
raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000017497F73A90>
Windows, Py 3.8, installed from master at 8738efc