Closed kuno closed 13 years ago
Hi,
I'm having the same problem: Django Version: 1.3.1 Python Version: 2.6.6 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.humanize', 'django_extensions', 'autofixture', 'debug_toolbar', 'djkombu', 'djcelery', 'queued_storage', 'storages', 'uni_form', 'easy_thumbnails', 'compressor', 'registration', 'socialregistration', 'south', ] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'socialregistration.middleware.FacebookMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware')
Traceback: File "/home/vlinhart/work/denikditete/env/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
Exception Type: TypeError at /dite/5/denik/7/pridat/ Exception Value: can't pickle function objects
Don't know how to solve this. When running in EAGER mode, no such problem occurs.
TypeError Traceback (most recent call last)
/home/kuno/utopia/sogoke-django/lib/python2.7/site-packages/queued_storage/backends.pyc in transfer(self, name, cache_key) 182 print(type(self.local)) 183 print(type(self.remote)) --> 184 return self.task.delay(name, self.local, self.remote, cache_key) 185 186 def get_valid_name(self, name):
It seems that queued_storage passed the local and remote lazy backnend to celery. As far as I understand that the most suitable parameters for celery task is simple data structure such as string or number.
So, this caused this error?