ask/kombu — Issue #83: AttributeError: 'NoneType' object has no attribute 'client'
Author: PonasNiekas
Created: 2011-11-28 14:06:21+00:00
State: open

Upgraded django-celery today and got kombu 1.5.0 as well as celery 2.4.4 .

Tasks which were running fine before upgrade, started failing:

Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/celery/execute/trace.py", line 47, in trace
return cls(states.SUCCESS, retval=fun(*args, **kwargs))
File "/usr/local/lib/python2.6/dist-packages/celery/app/task/__init__.py", line 247, in __call__
return self.run(*args, **kwargs)
File "/usr/local/ast-tools/WebTools/../WebTools/ASTTests/tasks.py", line 498, in run
return self.main()
File "/usr/local/ast-tools/WebTools/../WebTools/ASTTests/tasks.py", line 61, in wrapper
return func(*args, **kwargs)
File "/usr/local/ast-tools/WebTools/../WebTools/ASTTests/tasks.py", line 514, in main
self.uploadRDConfig()
File "/usr/local/ast-tools/WebTools/../WebTools/ASTTests/tasks.py", line 128, in wrapper
return func(*args, **kwargs)
File "/usr/local/ast-tools/WebTools/../WebTools/ASTTests/tasks.py", line 296, in uploadRDConfig
result = TaskSet(tasks=taskList).apply_async()
File "/usr/local/lib/python2.6/dist-packages/celery/task/sets.py", line 181, in apply_async
return app.TaskSetResult(setid, results)
File "/usr/lib/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python2.6/dist-packages/celery/app/base.py", line 284, in default_connection
yield connection
File "/usr/local/lib/python2.6/dist-packages/celery/task/sets.py", line 174, in apply_async
pub = publisher or self.Publisher(connection=conn)
File "/usr/local/lib/python2.6/dist-packages/celery/app/amqp.py", line 325, in TaskPublisher
return TaskPublisher(*args, **self.app.merge(defaults, kwargs))
File "/usr/local/lib/python2.6/dist-packages/celery/app/amqp.py", line 157, in __init__
super(TaskPublisher, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/kombu/compat.py", line 58, in __init__
super(Publisher, self).__init__(connection, self.exchange, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/kombu/messaging.py", line 71, in __init__
self.connection = self.channel.connection.client
AttributeError: 'NoneType' object has no attribute 'client'

--
lauris