Copyright: For reprint this article, please keep the source! https://blog.csdn.net/xc_zhou/article/details/91483096
Today, an installation on the new server pip install pika
program, and then connect mq on the incorrect report
Error message: basic_consume () got multiple values for keyword argument 'queue'
later learned that a version of the problem, looked at the original version is 0.12, the newly installed 1.01,
Solution:
Method 1: pip install pika==0.12
install version 0.12 can
Method 2:
The
channel.basic_consume(msg_consumer, queue="hello-queue", consumer_tag="hello-consumer")
Change
channel.basic_consume("hello-queue", msg_consumer, consumer_tag="hello-consumer")
Like, which is the location of the source parameters have changed.
Reference: https://stackoverflow.com/questions/50404273/python-tutorial-code-from-rabbitmq-failing-to-run
https://blog.csdn.net/jiangbo721/article/details/86083394