Closed jungle-D closed 2 years ago
[] 微信网页版 ... 开动 2022-09-07 10:53:14 zhanyixangdeMBP root[5478] DEBUG [] 微信网页版 ... 开动 [] 正在获取 uuid ... 2022-09-07 10:53:14 zhanyixangdeMBP root[5478] ERROR URLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997) Traceback (most recent call last): File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 1219, in webwx.start() File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 36, in wrapper return fn(args) File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 974, in start self._run('[] 正在获取 uuid ... ', self.getUUID) File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 1057, in _run if func(args): File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 153, in getUUID data = self._post(url, params, False).decode("utf-8") AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
我使用的是python3
[] 微信网页版 ... 开动 2022-09-07 10:53:14 zhanyixangdeMBP root[5478] DEBUG [] 微信网页版 ... 开动 [] 正在获取 uuid ... 2022-09-07 10:53:14 zhanyixangdeMBP root[5478] ERROR URLError = [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997) Traceback (most recent call last): File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 1219, in
webwx.start()
File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 36, in wrapper
return fn( args)
File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 974, in start
self._run('[] 正在获取 uuid ... ', self.getUUID)
File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 1057, in _run
if func(args):
File "/Users/zhanyixiang/WeixinBot/wxbot_demo_py3/weixin.py", line 153, in getUUID
data = self._post(url, params, False).decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
我使用的是python3