microsoft / microsoft/qlib

AttributeError: 'BaostockCollectorHS3005min' object has no attribute 'DEFAULT_START_DATETIME_5MIN'

Open
#1,885 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🐛 Bug Description

AttributeError: 'BaostockCollectorHS3005min' object has no attribute 'DEFAULT_START_DATETIME_5MIN'

To Reproduce

Steps to reproduce the behavior:

  1. run commend
    python scripts/data_collector/baostock_5min/collector.py download_data

Screenshot

Image

Environment

Linux
x86_64
Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.17
#1 SMP Tue Nov 5 00:21:55 UTC 2024

Python version: 3.8.20 (default, Oct 3 2024, 15:24:27) [GCC 11.2.0]

Qlib version: 0.9.6.99
numpy==1.23.5
pandas==2.0.3
scipy==1.10.1
requests==2.32.3
sacred==0.8.7
python-socketio==5.12.1
redis==5.2.1
python-redis-lock==4.0.0
schedule==1.2.2
cvxpy==1.5.2
hyperopt==0.2.7
fire==0.7.0
statsmodels==0.14.1
xlrd==2.0.1
plotly==6.0.0
matplotlib==3.7.5
tables==3.8.0
pyyaml==6.0.2
mlflow==2.17.2
tqdm==4.67.1
loguru==0.7.3
lightgbm==4.5.0
tornado==6.4.2
joblib==1.4.2
fire==0.7.0
ruamel.yaml==0.18.10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running python scripts/data_collector/baostock_5min/collector.py download_data and inspect scripts/data_collector/baostock_5min/collector.py where DEFAULT_START_DATETIME_5MIN is accessed. Trace how the BaostockCollectorHS3005min instance is initialized and confirm the command completes without the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.