Fail on import
Here is what I get when I tr an import :
DEBUG:urllib3.connectionpool:https://v.seloger.com:443 "GET /s/width/800/visuels/0/p/q/l/0pqlg4df2ku77n2s8qvnbubomhjndw533eq5ch29w.jpg HTTP/1.1" 503 53
DEBUG:PIL.Image:Importing BmpImagePlugin
DEBUG:PIL.Image:Importing BufrStubImagePlugin
DEBUG:PIL.Image:Importing CurImagePlugin
DEBUG:PIL.Image:Importing DcxImagePlugin
DEBUG:PIL.Image:Importing DdsImagePlugin
DEBUG:PIL.Image:Importing EpsImagePlugin
DEBUG:PIL.Image:Importing FitsStubImagePlugin
DEBUG:PIL.Image:Importing FliImagePlugin
DEBUG:PIL.Image:Importing FpxImagePlugin
DEBUG:PIL.Image:Importing FtexImagePlugin
DEBUG:PIL.Image:Importing GbrImagePlugin
DEBUG:PIL.Image:Importing GifImagePlugin
DEBUG:PIL.Image:Importing GribStubImagePlugin
DEBUG:PIL.Image:Importing Hdf5StubImagePlugin
DEBUG:PIL.Image:Importing IcnsImagePlugin
DEBUG:PIL.Image:Importing IcoImagePlugin
DEBUG:PIL.Image:Importing ImImagePlugin
DEBUG:PIL.Image:Importing ImtImagePlugin
DEBUG:PIL.Image:Importing IptcImagePlugin
DEBUG:PIL.Image:Importing JpegImagePlugin
DEBUG:PIL.Image:Importing Jpeg2KImagePlugin
DEBUG:PIL.Image:Importing McIdasImagePlugin
DEBUG:PIL.Image:Importing MicImagePlugin
DEBUG:PIL.Image:Importing MpegImagePlugin
DEBUG:PIL.Image:Importing MpoImagePlugin
DEBUG:PIL.Image:Importing MspImagePlugin
DEBUG:PIL.Image:Importing PalmImagePlugin
DEBUG:PIL.Image:Importing PcdImagePlugin
DEBUG:PIL.Image:Importing PcxImagePlugin
DEBUG:PIL.Image:Importing PdfImagePlugin
DEBUG:PIL.Image:Importing PixarImagePlugin
DEBUG:PIL.Image:Importing PngImagePlugin
DEBUG:PIL.Image:Importing PpmImagePlugin
DEBUG:PIL.Image:Importing PsdImagePlugin
DEBUG:PIL.Image:Importing SgiImagePlugin
DEBUG:PIL.Image:Importing SpiderImagePlugin
DEBUG:PIL.Image:Image: failed to import SpiderImagePlugin: No module named SpiderImagePlugin
DEBUG:PIL.Image:Importing SunImagePlugin
DEBUG:PIL.Image:Importing TgaImagePlugin
DEBUG:PIL.Image:Importing TiffImagePlugin
DEBUG:PIL.Image:Importing WebPImagePlugin
DEBUG:PIL.Image:Importing WmfImagePlugin
DEBUG:PIL.Image:Importing XbmImagePlugin
DEBUG:PIL.Image:Importing XpmImagePlugin
DEBUG:PIL.Image:Importing XVThumbImagePlugin
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/tonio/Code/Flatisfy/flatisfy/__main__.py", line 228, in <module>
main()
File "/home/tonio/Code/Flatisfy/flatisfy/__main__.py", line 214, in main
cmds.import_and_filter(config, load_from_db=False)
File "flatisfy/cmds.py", line 144, in import_and_filter
fetch_details=(not load_from_db))
File "flatisfy/cmds.py", line 122, in filter_fetched_flats
fetch_details
File "flatisfy/cmds.py", line 76, in filter_flats_list
first_pass_result["new"], constraint, config
File "flatisfy/tools.py", line 410, in wrapped
res = func(*args, **kwargs)
File "flatisfy/filters/__init__.py", line 231, in second_pass
images.download_images(flats_list, config)
File "flatisfy/filters/images.py", line 35, in download_images
photo_cache.get(photo["url"])
File "flatisfy/filters/cache.py", line 49, in get
item = self.map[key] = self.on_miss(key)
File "flatisfy/filters/cache.py", line 109, in on_miss
image = PIL.Image.open(BytesIO(requests.get(url).content))
File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 2572, in open
% (filename if filename else fp))
IOError: cannot identify image file <_io.BytesIO object at 0x7f4cd4c10b90>
Edited by Antoine