Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to init data in quantaxis cli #1825

Open
frankwang314 opened this issue Mar 13, 2023 · 2 comments
Open

Failed to init data in quantaxis cli #1825

frankwang314 opened this issue Mar 13, 2023 · 2 comments

Comments

@frankwang314
Copy link

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'

@yys123
Copy link

yys123 commented Mar 14, 2023

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

@frankwang314
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants