You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: