AttributeError: 'S3BotoStorageFile' object has no attribute 'file'

Issue #219 new
Jordan Clark
created an issue

Uploads work fine, but whenever I try to read files I get this error:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "~/.virtualenvs/*/lib/python3.4/site-packages/storages/backends/s3boto.py", line 144, in read
    return super(S3BotoStorageFile, self).read(*args, **kwargs)
  File "~/.virtualenvs/*/lib/python3.4/site-packages/django/core/files/utils.py", line 16, in <lambda>
    read = property(lambda self: self.file.read)
AttributeError: 'S3BotoStorageFile' object has no attribute 'file'

Python3.4, django 1.7

Using django-storages-redux but also an issue in django-storages

Comments (0)

  1. Log in to comment