nameko: Incompatibility with kombu 4.0
When running the pub/sub example from the docs, I get the following error:
AttributeError: 'Connection' object has no attribute 'exchange_declare'
Full traceback is here:
https://gist.github.com/adwhit/5007a304d68891ead581e4c9035db205
Nameko version 2.4.2, Kombu version 4.0.0
If I drop down to Kombu 3.0.37, it works. Therefore I assume the problem is either with Kombu or the Nameko-Kombu interface.
Edit - I see you have recently updated setup.py to use a version < 4. Feel free to close this issue! I note that every other feature seemed to be working correctly so hopefully there will not be too much work to get 4.0 working.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (12 by maintainers)
The incompatibility is with pyamqp 2.x. They are not major, but fixing them required feature sniffing to keep supporting the older version of the library so we didn’t.
2.x has been out for long enough now though that I would be happy to upgrade and drop support for older versions.
Are you using both Celery and Nameko in the same process? If not, can’t you run them from different environments?
I don’t know if my problem deserves separate issue, but I have a problem now, which seems to be related to this topic. I have latest celery (4.1.0) in project which depends on kombu 4.1.0. Since I have also nameko, I can’t use pytest (and probably code that invokes calls to the nameko microservice, haven’t tested yet), it just fails with:
When lowering down kombu to 3.0.17 i get error from celery (something about imports and other errors as well).
Am I missing something obvious or I just can’t use nameko and celery in one project due to kombu versions mismatch (can you suggest something in this case)?