save all 出现问题 docker版本
发布于 1 个月前 作者 better319 168 次浏览 来自 问答

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.108.98.244 future_ip 106.14.95.149 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 724, in QA_fetch_get_stock_list return pd.concat([sz, sh], sort=False).query( File “/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py”, line 3699, in assign data[k] = com.apply_if_callable(v, data) File “/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py”, line 3044, in setitem self._set_item(key, value) File “/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py”, line 3120, in _set_item value = self._sanitize_column(key, value) File “/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py”, line 3745, in _sanitize_column value = reindexer(value) File “/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py”, line 3736, in reindexer raise err File “/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py”, line 3731, in reindexer value = value.reindex(self.index)._values File “/opt/conda/lib/python3.8/site-packages/pandas/core/series.py”, line 4412, in reindex return super().reindex(index=index, **kwargs) File “/opt/conda/lib/python3.8/site-packages/pandas/core/generic.py”, line 4463, in reindex return self._reindex_axes( File “/opt/conda/lib/python3.8/site-packages/pandas/core/generic.py”, line 4478, in _reindex_axes new_index, indexer = ax.reindex( File “/opt/conda/lib/python3.8/site-packages/pandas/core/indexes/multi.py”, line 2319, in reindex raise ValueError(“cannot handle a non-unique multi-index!”) ValueError: cannot handle a non-unique multi-index!

好像是pandas的问题??

2 回复

pytdx-1.72r0-py3-none-any.whl 重装这个版本

第一次部署docker版QA必须的初始化操作步骤: 一、在浏览器输入docker宿主机"ip地址:8888"; 二、进入jupyterlab登录界面后输入口令"quantaxis"; 三、进入jupyterlab启动页,点击Terminal进入终端; 四、在终端界面输入"/bin/bash",进入bash状态; 五、bash状态输入"quantaxis",进入数据库操作状态; 六:依次输入完成数据库初始化 "save stock_list",“save single_index_day 000300" 输入exit退出终端,在docker管理界面重启qaweb容器,最后浏览器输入docker宿主机"ip地址:81”,弹出的登录界面把登录地址端口改为docker宿主机"ip地址:8010",就可以进入QA前端界面; 因为QQ群没有办法沉淀问题 本群不再作为问题解答 全部转移至社区论坛 问问题前先搜索一下答案再问 论坛地址: http://www.yutiansut.com:3000/ QUANTAXIS推荐部署的情况为 : docker部署服务(如 QA的基础服务 web 以及 数据库 mq等) 然后如果你需要开发你的代码 可以 通过QA开出来的jupyterlab(8888)端口, 也可以直接本地使用本地的python做研究

回到顶部