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
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 报错