ubuntu docker下的quantaxis无法save 数据
发布于 3 个月前 作者 SilenceWinter 323 次浏览 来自 报bug

报错的环境操作系统是ubuntu18.04,wifi网络确认正常,我是docker一键部署,上一个月还能save all数据,今天操作却报错。
同样的wifi下,另外一台win10,docker部署的quantaxis,可以save all。 我也是醉了。

报错信息如下: Progress: 75.00% Progress: 79.17% BAD RESPONSE 113.105.142.162 BAD RESPONSE 23.129.245.199 Progress: 83.33% saving ip list to stock cache 23 USING DEFAULT FUTURE IP QUANTAXIS>> === The BEST SERVER === stock_ip 113.105.73.88 future_ip 59.175.238.38 Traceback (most recent call last): File “/opt/conda/bin/quantaxis”, line 8, in <module> sys.exit(QA_cmd()) File “/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QACmd/init.py”, line 735, in QA_cmd cli.cmdloop() File “/opt/conda/lib/python3.8/cmd.py”, line 138, in cmdloop stop = self.onecmd(line) File “/opt/conda/lib/python3.8/cmd.py”, line 217, in onecmd return func(arg) File “/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QACmd/init.py”, line 380, in do_save QA_SU_save_stock_day(“tdx”) File “/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QAUtil/init.py”, line 169, in wrapper func(*args, **kwargs) File “/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QASU/main.py”, line 222, in QA_SU_save_stock_day engine.QA_SU_save_stock_day(client=client) File “/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QASU/save_tdx.py”, line 199, in QA_SU_save_stock_day stock_list = QA_fetch_get_stock_list().code.unique().tolist() File “/opt/conda/lib/python3.8/site-packages/retrying.py”, line 49, in wrapped_f return Retrying(*dargs, **dkw).call(f, *args, **kw) File “/opt/conda/lib/python3.8/site-packages/retrying.py”, line 212, in call raise attempt.get() File “/opt/conda/lib/python3.8/site-packages/retrying.py”, line 247, in get six.reraise(self.value[0], self.value[1], self.value[2]) File “/opt/conda/lib/python3.8/site-packages/six.py”, line 703, in reraise raise value File “/opt/conda/lib/python3.8/site-packages/retrying.py”, line 200, in call attempt = Attempt(fn(*args, **kwargs), attempt_number, False) File “/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QAFetch/QATdx.py”, line 704, in QA_fetch_get_stock_list with api.connect(ip, port): AttributeError: enter

2 回复

请问这个问题 解决了吗

+1 ubuntu 系统 py3 安装的 quantaxis ,昨天还可以 save all ,今天就不行。。。

$ quantaxis
jqdatasdk not installed
you are using non-interactive mdoel quantaxis
ModuleNotFoundError: No module named 'tkinter'
centos 6: sudo yum install tk-devel tcl-devel sqlite-devel gdbm-devel xz-devel readline-devel
cnetos 7: sudo yum install tk-devel tcl-devel sqlite-devel gdbm-devel xz-devel readline-devel python3-tk
ubuntu: sudo apt install python3-tk
QUANTAXIS> save all
QUANTAXIS>> Selecting the Best Server IP of TDX
USING DEFAULT STOCK IP
USING DEFAULT FUTURE IP
QUANTAXIS>> === The BEST SERVER ===
 stock_ip 218.75.126.9 future_ip 119.97.185.5
Traceback (most recent call last):
  File "/usr/local/bin/quantaxis", line 8, in <module>
    sys.exit(QA_cmd())
  File "/usr/local/lib/python3.8/dist-packages/QUANTAXIS/QACmd/__init__.py", line 735, in QA_cmd
    cli.cmdloop()
  File "/usr/lib/python3.8/cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
    return func(arg)
  File "/usr/local/lib/python3.8/dist-packages/QUANTAXIS/QACmd/__init__.py", line 380, in do_save
    QA_SU_save_stock_day("tdx")
  File "/usr/local/lib/python3.8/dist-packages/QUANTAXIS/QAUtil/__init__.py", line 169, in wrapper
    func(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/QUANTAXIS/QASU/main.py", line 222, in QA_SU_save_stock_day
    engine.QA_SU_save_stock_day(client=client)
  File "/usr/local/lib/python3.8/dist-packages/QUANTAXIS/QASU/save_tdx.py", line 199, in QA_SU_save_stock_day
    stock_list = QA_fetch_get_stock_list().code.unique().tolist()
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 212, in call
    raise attempt.get()
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "/usr/local/lib/python3.8/dist-packages/QUANTAXIS/QAFetch/QATdx.py", line 724, in QA_fetch_get_stock_list
    return pd.concat([sz, sh], sort=False).query(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3827, in assign
    data[k] = com.apply_if_callable(v, data)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3163, in __setitem__
    self._set_item(key, value)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3239, in _set_item
    value = self._sanitize_column(key, value)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3873, in _sanitize_column
    value = reindexer(value)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3864, in reindexer
    raise err
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3859, in reindexer
    value = value.reindex(self.index)._values
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/series.py", line 4342, in reindex
    return super().reindex(index=index, **kwargs)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/generic.py", line 4808, in reindex
    return self._reindex_axes(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/generic.py", line 4824, in _reindex_axes
    new_index, indexer = ax.reindex(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/pandas/core/indexes/multi.py", line 2483, in reindex
    raise ValueError("cannot handle a non-unique multi-index!")
ValueError: cannot handle a non-unique multi-index!
回到顶部