Kombu 4.2.0 breaks with celery 4.1.0
See original GitHub issueHi,
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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Change history — Kombu 5.2.4 documentation - Celery
BREAKING CHANGE: Dropped support for Python 2 (#1232) ... The 4.2.0 release contained remains of the async module by accident. This is now...
Read more >Celery AttributeError: async error - Stack Overflow
kombu 4.2.0 was released with a breaking change and previous versions of celery automatically install it. Since Celery doesn't pin specific ...
Read more >Kombu Documentation - Celery
Kombu is a messaging library for Python. The aim of Kombu is to make messaging in Python as easy as possible by providing...
Read more >kombu>=4.0.2,<5.0 - Red Hat Customer Portal
Red Hat Satellite or Capsule installation\upgrade fails on pulp-manage-db step with error "pkg_resources.DistributionNotFound: kombu>=4.0.2,<5.0 ...
Read more >Change history — Celery 4.2.0 文档
Please upgrade as soon as possible or pin Kombu to 4.1.0. Breaking Change: The module async in Kombu changed to asynchronous .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.