Why are there a series of technical challenges behind “OMG buy it”>>>
Today, a PIP install pika
was installed on the new server, and then the program connecting to MQ reported an error
Error message: Basic_ Later, I learned that it was a version problem. I looked at the original version of 0.12 and the newly installed version of 1.01
Solution:
method 1: PIP install pika = = 0.12
install version 0.12
Method 2:
put
channel.basic_consume(msg_consumer, queue="hello-queue", consumer_tag="hello-consumer")
Change to
channel.basic_consume("hello-queue", msg_consumer, consumer_tag="hello-consumer")
That’s good. The position of the parameters in the source code has changed
Reference: https://stackoverflow.com/questions/50404273/python-tutorial-code-from-rabbitmq-failing-to-run
https://blog.csdn.net/jiangbo721/article/details/86083394
This article is shared in the blog “Zhou Xiaodong” (CSDN).
Similar Posts:
- Rabbitmq simple configuration and oserror: [errno 9] bad file descriptor problem
- [Solved] JMeter Generate the report of html Error
- [Solved] No converter found for return value of type: class org.json.JSONObject
- [Solved] Dubbo Error: No provider available for the service xxx from registry localhost:9090
- ERROR EPERM: operation not permitted, mkdir ‘C:\Users\Administrator\Desktop\text\nuxt\basic\…
- Node Rabbit: How to Enable Plugins
- The jar file rt.jar has no source attachment appears in eclipse
- 「ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory」
- Python PIP installs scrapy with an error of twisted
- Python solves the problem of modulenotfounderror: no module named ‘queue’