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

run pit download_data script error #978

Closed
Chaoyingz opened this issue Mar 14, 2022 · 1 comment
Closed

run pit download_data script error #978

Chaoyingz opened this issue Mar 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Chaoyingz
Copy link
Contributor

🐛 Bug Description

The following error occurs when you run the pit download_data script:
TypeError: download_data() takes from 1 to 7 positional arguments but 8 were given

To Reproduce

Steps to reproduce the behavior:

  1. cd scripts/data_collector/pit/
  2. python collector.py download_data --source_dir ./csv_pit --start 2000-01-01 --end 2020-01-01 --interval quarterly --symbol_flt_regx "^(600519|000725).*"

Expected Behavior

Data download successful.

Screenshot

image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

Darwin
x86_64
macOS-10.14.6-x86_64-i386-64bit
Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64

Python version: 3.8.12 (default, Feb 9 2022, 10:43:54) [Clang 10.0.1 (clang-1001.0.46.4)]

Qlib version: 0.8.4.99
numpy==1.22.2
pandas==1.4.1
scipy==1.8.0
requests==2.27.1
sacred==0.8.2
python-socketio==5.5.2
redis==4.1.4
python-redis-lock==3.7.0
schedule==1.1.0
cvxpy==1.0.21
hyperopt==0.1.1
fire==0.4.0
statsmodels==0.13.2
xlrd==2.0.1
plotly==4.12.0
matplotlib==3.1.3
tables==3.7.0
pyyaml==6.0
mlflow==1.24.0
tqdm==4.63.0
loguru==0.6.0
lightgbm==3.3.2
tornado==6.1
joblib==1.1.0
fire==0.4.0
ruamel.yaml==0.17.21

Additional Notes

@Chaoyingz Chaoyingz added the bug Something isn't working label Mar 14, 2022
@Chaoyingz
Copy link
Contributor Author

fixed in this PR #979.

you-n-g pushed a commit that referenced this issue Mar 15, 2022
* Fix pit download_data script TypeError (#978)

* Format pit collector with black

* Format pit collector with black
qianyun210603 pushed a commit to qianyun210603/qlib that referenced this issue Mar 23, 2023
* Fix pit download_data script TypeError (microsoft#978)

* Format pit collector with black

* Format pit collector with black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant