当我在rabbitmq 3.6.10中运行命令时,"rabbitmqadmin队列名为message_stats.publish_details.rate“
echo AttributeError:'float‘对象在控制台中没有属性'encode’。
发布于 2022-05-26 10:16:38
只需修改python脚本文件"rabbitmqadmin“(422行代码):
def maybe_utf8(s):
if isinstance(s, int):
# s can be also an int for ex messages count
return str(s)
if isinstance(s, float):
# s can be also a float for message rate
return str(s)
if sys.version_info[0] == 3:
# It will have an encoding, which Python will respect
return shttps://stackoverflow.com/questions/72390200
复制相似问题