QUANTAXIS icon indicating copy to clipboard operation
QUANTAXIS copied to clipboard

Failed to init data in quantaxis cli

Open frankwang314 opened this issue 1 year ago • 2 comments

hello guys,

I'm a freshman to quantaxis, when I wanted to init data in quantaxis cli with command "save all", I got errors as following. What I was wrong , any advise could be appreciated.

(venv) D:\py_workspace\QUANTAXIS>quantaxis d:\py_workspace\quantaxis\QUANTAXIS\QAFetch\QAhuobi_realtime.py:667: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future versi on. Specify a dtype explicitly to silence this warning. candleline=pd.Series(), QUANTAXIS> save all Traceback (most recent call last): File "D:\py_workspace\QUANTAXIS\venv\Scripts\quantaxis-script.py", line 33, in sys.exit(load_entry_point('quantaxis', 'console_scripts', 'quantaxis')()) File "d:\py_workspace\quantaxis\QUANTAXIS\QACmd_init_.py", line 686, in QA_cmd cli.cmdloop() File "D:\Program Files\Python\Python38\lib\cmd.py", line 138, in cmdloop stop = self.onecmd(line) File "D:\Program Files\Python\Python38\lib\cmd.py", line 217, in onecmd return func(arg) File "d:\py_workspace\quantaxis\QUANTAXIS\QACmd_init_.py", line 340, in do_save if QA_Setting().client.quantaxis.user_list.find( AttributeError: 'Cursor' object has no attribute 'count'

frankwang314 avatar Mar 13 '23 10:03 frankwang314

Sorry, I am not the author, I can not help you.

yys123 avatar Mar 14 '23 09:03 yys123

Downgrade python version to 3.6.8(win32), and upgrade pip to newest version, then the problem has been fixed.

frankwang314 avatar Mar 14 '23 10:03 frankwang314