django-imagekit icon indicating copy to clipboard operation
django-imagekit copied to clipboard

Error with Celery backend and S3 storage

Open rodrigogadea opened this issue 11 years ago • 2 comments

Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/webcassette/src/celery-webcassette/celery/app/trace.py", line 218, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/ubuntu/.virtualenvs/webcassette/src/celery-webcassette/celery/app/trace.py", line 398, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 116, in _generate_file
    backend.generate_now(file, force=force)
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 94, in generate_now
    if force or self.get_state(file) not in (CacheFileState.GENERATING, CacheFileState.EXISTS):
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 68, in get_state
    exists = self._exists(file)
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/imagekit/cachefiles/backends.py", line 112, in _exists
    or file.storage.exists(file.name))
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/storages/backends/s3boto.py", line 290, in exists
    name = self._normalize_name(self._clean_name(name))
  File "/home/ubuntu/.virtualenvs/webcassette/local/lib/python2.7/site-packages/storages/backends/s3boto.py", line 225, in _clean_name
    return os.path.normpath(name).replace('\\', '/')
  File "/home/ubuntu/.virtualenvs/webcassette/lib/python2.7/posixpath.py", line 327, in normpath
    initial_slashes = path.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'

rodrigogadea avatar Jan 15 '14 19:01 rodrigogadea

I'm getting the same error. Any ideas? Are you also using newrelic?

pdr avatar Apr 07 '15 19:04 pdr

Any news about these error? I got the same error here!

fhbash avatar Nov 12 '15 10:11 fhbash