matthewwithanm / django-imagekit

Automated image processing for Django. Currently v4.0
http://django-imagekit.rtfd.org/
BSD 3-Clause "New" or "Revised" License
2.27k stars 275 forks source link

Error with Celery backend and S3 storage #265

Open rodrigogadea opened 10 years ago

rodrigogadea commented 10 years ago
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'
pdr commented 9 years ago

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

fellipeh commented 8 years ago

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