kombu: Kombu 4.2.0 breaks with celery 4.1.0
Hi,
I saw that yesterday kombu released version 4.2.0. After this release celery 4.1.0 starts to break. I guess it should have a release with this change in celery too.
Traceback (most recent call last):
File "/usr/local/bin/celery", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/celery/__main__.py", line 14, in main
_main()
File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 326, in main
cmd.execute_from_commandline(argv)
File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 488, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/usr/local/lib/python3.6/site-packages/celery/bin/base.py", line 281, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 480, in handle_argv
return self.execute(command, argv)
File "/usr/local/lib/python3.6/site-packages/celery/bin/celery.py", line 412, in execute
).run_from_argv(self.prog_name, argv[1:], command=argv[0])
File "/usr/local/lib/python3.6/site-packages/celery/bin/worker.py", line 221, in run_from_argv
return self(*args, **options)
File "/usr/local/lib/python3.6/site-packages/celery/bin/base.py", line 244, in __call__
ret = self.run(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/celery/bin/worker.py", line 255, in run
**kwargs)
File "/usr/local/lib/python3.6/site-packages/celery/worker/worker.py", line 99, in __init__
self.setup_instance(**self.prepare_args(**kwargs))
File "/usr/local/lib/python3.6/site-packages/celery/worker/worker.py", line 122, in setup_instance
self.should_use_eventloop() if use_eventloop is None
File "/usr/local/lib/python3.6/site-packages/celery/worker/worker.py", line 241, in should_use_eventloop
self._conninfo.transport.implements.async and
File "/usr/local/lib/python3.6/site-packages/kombu/transport/base.py", line 125, in __getattr__
raise AttributeError(key)
AttributeError: async
My solution was to force kombu 4.1.0 in my requirements.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 22 (12 by maintainers)
Commits related to this issue
- Pin kombu version to match celery See https://github.com/celery/kombu/issues/873 — committed to migonzalvar/taiga-back by migonzalvar 6 years ago
- Pin kombu version to match celery See https://github.com/celery/kombu/issues/873 — committed to dangarbar/taiga-back by migonzalvar 6 years ago
- Pin kombu version to match celery See https://github.com/celery/kombu/issues/873 — committed to migonzalvar/taiga-back by migonzalvar 6 years ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
- Kombu versions above 4.1 require celery 4.2 otherwise you will get a AttributeError: async when trying to run worker pods See https://github.com/celery/kombu/issues/873 for more info — committed to ministryofjustice/cla_backend by said-moj a year ago
Omer, I checked locally land it works for me, not sure if they are working on production and didn’t restart after updating?
Hi, in my case when I have seen this error I noticed a “kombu” folder was created in the root of my venv. In the same time I still could see kombu in venv-related site-packages. As soon as I removed this weird “kombu” from venv root everything worked fine for me.