_save uses unexpected kwarg 'rewind' (257:57904933f26b)

Issue #144 resolved
Former user created an issue

Attempted to collectstatic with tip, got the following error:

Traceback (most recent call last):
  File "fbr/configs/feature_e/manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 163, in handle_noargs
    collected = self.collect()
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 113, in collect
    handler(path, prefixed_path, storage)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 303, in copy_file
    self.storage.save(prefixed_path, source_file)
  File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/files/storage.py", line 45, in save
    name = self._save(name, content)
  File "/app/.heroku/venv/lib/python2.7/site-packages/storages/backends/s3boto.py", line 272, in _save
    rewind=True, **kwargs)
TypeError: set_contents_from_file() got an unexpected keyword argument 'rewind'

Comments (6)

  1. David Larlet repo owner

    Can you mention the version of boto you use? It's probably related to a recent update of the storage that requires a more recent version of boto.

    Thanks.

  2. Log in to comment