Python slack rtm_connect未返回输出

Python slack rtm_connect未返回输出,python,slack,Python,Slack,当运行slack bot失败并出现以下错误时,当api_调用api.test时,auth.test似乎工作正常,您知道如何解决这个问题吗?我遗漏了什么吗 错误: No handlers could be found for logger "slackclient.client" Connection Failed 代码段: from slackclient import SlackClient import os slack_token = os.environ["SLACKBOT_L

当运行slack bot失败并出现以下错误时,当api_调用api.test时,auth.test似乎工作正常,您知道如何解决这个问题吗?我遗漏了什么吗

错误:

 No handlers could be found for logger "slackclient.client"
 Connection Failed
代码段:

from slackclient import SlackClient
import os


slack_token = os.environ["SLACKBOT_LUMBERGH_TOKEN"]
sc = SlackClient(slack_token)

if sc.rtm_connect():
    while sc.server.connected is True:
        print sc.rtm_read()
        time.sleep(1)
else:
    print "Connection Failed"
当我加上

print slack_client.api_call("api.test")
print slack_client.api_call("auth.test")
它返回值。我有什么遗漏吗


谢谢

我将python和pip升级到最新版本,之后工作顺利