No attribute named 'spec'
I am new to this library and cut-and-pasted one of the tutorial examples. https://github.com/mosquito/aiormq#id22
When attempting to run this code I get "AttributeError: module 'aiormq' has no attribute 'spec'"
Is the documentation lagging behind the code or am I missing something else? Thanks.
Solved. I use PyCharm and imported the library using Poetry. The IDE reports that I am using version 4.0.1. In the aiormq/__init__.py file in my copy, the line from pamqp import commands as spec was not included at the top of the file. Also, "spec", must be added into the contents of the __all__ variable on (around line 62 in the original). That fixed it for me.
4.x.x branch is unstable now. Sorry for no mensions.