jazzband / django-queued-storage

Provides a proxy for Django storage backends that allows you to upload files locally and eventually serve them remotely
http://django-queued-storage.rtfd.org/
BSD 3-Clause "New" or "Revised" License
317 stars 62 forks source link

Can't import queued_storage.tasks.Transfer #7

Closed issackelly closed 12 years ago

issackelly commented 12 years ago

Using Django 1.4, queued_storage 0.5

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/commands/validate.py", line 9, in handle_noargs
    self.validate(display_num_errors=True)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
    self._populate()
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in _populate
    self.load_app(app_name, True)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/db/models/loading.py", line 88, in load_app
    models = import_module('.models', app_name)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/issackelly/Projects/python/replayswithfriends/replayswithfriends/sc2match/models.py", line 16, in <module>
    'storages.backends.s3boto.S3BotoStorage'
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/queued_storage/backends.py", line 84, in __init__
    handler=import_attribute)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/queued_storage/backends.py", line 100, in _load_backend
    return handler(backend, options)
  File "/Users/issackelly/.virtualenvs/replayswithfriends/lib/python2.7/site-packages/queued_storage/utils.py", line 18, in import_attribute
    (module, e))
django.core.exceptions.ImproperlyConfigured: Error importing module queued_storage.tasks: "Import by filename is not supported."
issackelly commented 12 years ago

Apologies, this seems to stem from a bad celery configuration.