HuobiRDCenter / huobi_Python

Python SDK for Huobi Spot API
https://huobiapi.github.io/docs/spot/v1/en
Apache License 2.0
680 stars 332 forks source link

struct.error: unpack requires a buffer of 44 bytes #28

Closed featheryus closed 3 years ago

featheryus commented 4 years ago

File "/usr/local/lib/python3.7/dist-packages/huobi_client-1.0.1-py3.7.egg/huobi/subscriptionclient.py", line 52, in init File "/usr/local/lib/python3.7/dist-packages/huobi_client-1.0.1-py3.7.egg/huobi/impl/websocketwatchdog.py", line 37, in init File "/usr/local/lib/python3.7/dist-packages/APScheduler-3.6.3-py3.7.egg/apscheduler/schedulers/base.py", line 87, in init self.configure(gconfig, **options) File "/usr/local/lib/python3.7/dist-packages/APScheduler-3.6.3-py3.7.egg/apscheduler/schedulers/base.py", line 126, in configure self._configure(config) File "/usr/local/lib/python3.7/dist-packages/APScheduler-3.6.3-py3.7.egg/apscheduler/schedulers/base.py", line 697, in _configure self.timezone = astimezone(config.pop('timezone', None)) or get_localzone() File "/usr/local/lib/python3.7/dist-packages/tzlocal-2.0.0-py3.7.egg/tzlocal/unix.py", line 165, in get_localzone _cache_tz = _get_localzone() File "/usr/local/lib/python3.7/dist-packages/tzlocal-2.0.0-py3.7.egg/tzlocal/unix.py", line 156, in _get_localzone return pytz.tzfile.build_tzinfo('local', tzfile) File "/usr/local/lib/python3.7/dist-packages/pytz-2019.3-py3.7.egg/pytz/tzfile.py", line 29, in build_tzinfo typecnt, charcnt) = unpack(head_fmt, fp.read(head_size)) struct.error: unpack requires a buffer of 44 bytes

安装后,执行example/restful/getaccount.py 报错

featheryus commented 4 years ago

SDK: huobi_Python-1.0.5 python: 3.7.5

eynzhang commented 3 years ago

Thanks for your feedback, please try the latest master branch for version 2.