-
Notifications
You must be signed in to change notification settings - Fork 453
Description
I create a new python environment (Python 2.7) and install django 1.4.3 and django-celery 3.0.11 . I then cd into my django project where the first two lines of settings.py have:
import djcelery
djcelery.setup_loader()
INSTALLED_APPS contains 'djcelery'
When I run:
python manage.py celery worker
I get the following error:
-------------- celery@MIGUEL-PC v3.0.15 (Chiastic Slide)
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://guest@localhost:5672//
- ** ---------- . app: default:0x34fd9e8 (djcelery.loaders.DjangoLoader)
- ** ---------- . concurrency: 8 (processes)
- ** ---------- . events: OFF (enable -E to monitor this worker)
- ** ----------
- *** --- * --- [Queues]
-- ******* ---- . celery: exchange:celery(direct) binding:celery
--- ***** -----
[2013-02-13 15:40:58,119: ERROR/MainProcess] Unrecoverable error: TypeError("'LazySettings' object is not iterable",)
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\celery\worker__init__.py", line 351, in start
component.start()
File "C:\Python27\Lib\site-packages\celery\concurrency\base.py", line 111, in start
self.on_start()
File "C:\Python27\Lib\site-packages\celery\concurrency\processes__init__.py", line 80, in on_start
**self.options)
File "C:\Python27\Lib\site-packages\billiard\pool.py", line 845, in init
self._create_worker_process(i)
File "C:\Python27\Lib\site-packages\billiard\pool.py", line 915, in _create_worker_process
w.start()
File "C:\Python27\Lib\site-packages\billiard\process.py", line 119, in start
self._popen = Popen(self)
File "C:\Python27\Lib\site-packages\billiard\forking.py", line 336, in init
dump(process_obj, to_child, HIGHEST_PROTOCOL)
File "C:\Python27\Lib\site-packages\billiard\forking.py", line 127, in dump
ForkingPickler(file, protocol).dump(obj)
File "C:\Python27\lib\pickle.py", line 224, in dump
self.save(obj)
File "C:\Python27\lib\pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "C:\Python27\lib\pickle.py", line 419, in save_reduce
save(state)
File "C:\Python27\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "C:\Python27\lib\pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "C:\Python27\lib\pickle.py", line 681, in _batch_setitems
save(v)
File "C:\Python27\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "C:\Python27\lib\pickle.py", line 562, in save_tuple
save(element)
File "C:\Python27\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "C:\Python27\lib\pickle.py", line 548, in save_tuple
save(element)
File "C:\Python27\lib\pickle.py", line 306, in save
rv = reduce(self.proto)
File "C:\Python27\Lib\site-packages\celery\app\base.py", line 409, in reduce
(self.class, self.Pickler) + self.reduce_args(),
File "C:\Python27\Lib\site-packages\celery\app\base.py", line 419, in reduce_args
else self.conf._pickleable_changes())
File "C:\Python27\Lib\site-packages\celery\app\utils.py", line 77, in _pickleable_changes
R.update(d)
TypeError: 'LazySettings' object is not iterable
c:\Users\MIGUEL\Projects\django_atf>Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\Lib\site-packages\billiard\forking.py", line 530, in main
self = load(from_parent)
File "C:\Python27\lib\pickle.py", line 1378, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 858, in load
dispatchkey
File "C:\Python27\lib\pickle.py", line 880, in load_eof
raise EOFError
EOFError"