huobi_Python icon indicating copy to clipboard operation
huobi_Python copied to clipboard

升级到python3.9后,遇到 TypeError: __init__() got an unexpected keyword argument 'encoding' 错误

Open cmdyu opened this issue 4 years ago • 1 comments

参考
https://github.com/psychopy/psychopy/pull/3343

把 huobi/connection/impl/restapi_invoker.py 第56行里的 encoding 参数去掉后就可以了,如下

dict_data = json.loads(response.text)

cmdyu avatar May 13 '21 02:05 cmdyu

遇到同样的错误。

我操作了以下两个步骤后成功读取数据:

  1. 搜索删除文件 huobi/connection/impl/restapi_invoker.py encoding 参数,总共4处;
  2. 按照安装说明,重装一遍 huobi sdk;

总结:这坑请官方尽快填上。

codertesla avatar Aug 15 '21 12:08 codertesla