-
Notifications
You must be signed in to change notification settings - Fork 8
Crash on creating thumbnail from files moved from google drive. #35
Description
I can't explain this, but I copied some files from Google drive, and python-thumbnails is crashing when creating the thumbnail.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.7/site-packages/django/views/decorators/vary.py", line 21, in inner_func
response = func(*args, **kwargs)
File "/Volumes/4TB_Drive/gallery/quickbbs/frontend/views.py", line 535, in thumbnails
thumbnailfile = process_images(fs_path, thumb_size)
File "/Volumes/4TB_Drive/gallery/quickbbs/frontend/views.py", line 465, in process_images
fext)
File "/Volumes/4TB_Drive/gallery/quickbbs/frontend/views.py", line 310, in make_thumbnail
crop=None, force=False)
File "/Volumes/4TB_Drive/gallery/quickbbs/thumbnails/init.py", line 47, in get_thumbnail
cached = cache.get(thumbnail_name)
File "/Volumes/4TB_Drive/gallery/quickbbs/thumbnails/cache_backends.py", line 26, in get
return self._get(thumbnail_name)
File "/Volumes/4TB_Drive/gallery/quickbbs/thumbnails/cache_backends.py", line 79, in _get
return self.cache.get(thumbnail_name.replace('/', ''))
File "/Library/Python/2.7/site-packages/django/core/cache/backends/locmem.py", line 54, in get
return pickle.loads(pickled)
TypeError: new() takes exactly 4 arguments (2 given)
If I stop the app, and restart it, it does appear that the thumbnails were created, since they are now visible. But if I advance to a file that didn't get created, the same error occurs.
thumnail_name in Line 79 in cache backends :650/5c3a06fe95ed05219e85619503f97c8c30b99
If I attempt to thumbnail any files other than these files copied from google drive, it works fine.
I've checked permissions, with no obvious issues.
Any suggestions on where or what to check? This seems very odd!