Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

错误提示 #13

Open
Panlq opened this issue Apr 4, 2019 · 1 comment
Open

错误提示 #13

Panlq opened this issue Apr 4, 2019 · 1 comment

Comments

@Panlq
Copy link

Panlq commented Apr 4, 2019

在python 版中,发布订阅部分receive_logs.py,其中以下代码错误

result = channel.queue_declare(exclusive=True)

需修改为:

result = channel.queue_declare('', exclusive=True)
原文

@mr-ping
Copy link
Owner

mr-ping commented Apr 10, 2019

您用的可能是pika1.0.0版本。
新的1.0.0版本对queue_declare方法进行了修改,方法本身不再给其中的queue参数提供默认的空值。

这篇文档使用的是0.9.6版本的pika(文档内有说明),如果你用0.9.6版本,不会报错。
不过没关系,基于pika 1.0.0版本的教程正在路上,敬请期待。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants