Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library seems to work with Pillow, which is unspecified in dependencies #4

Open
JosXa opened this issue Jun 14, 2020 · 0 comments
Open

Comments

@JosXa
Copy link

JosXa commented Jun 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant