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

yahoo collector returns error #356

Closed
2young-2simple-sometimes-naive opened this issue Mar 21, 2021 · 2 comments · Fixed by #357
Closed

yahoo collector returns error #356

2young-2simple-sometimes-naive opened this issue Mar 21, 2021 · 2 comments · Fixed by #357
Labels
bug Something isn't working

Comments

@2young-2simple-sometimes-naive
Copy link
Contributor

command:
python .qlib/scripts/data_collector/yahoo/collector.py download_data --source_dir .csv-yahoo --region US --start 2021-03-18 --end 2021-03-19 --delay 0.1 --interval 1d
Bug report:

Traceback (most recent call last):
  File ".qlib/scripts/data_collector/yahoo/collector.py", line 642, in <module>
    fire.Fire(Run)
  File "xxxxxxxxxxxxxxxx/.venv/lib/python3.7/site-packages/fire-0.3.1-py3.7.egg/fire/core.py", line 138, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "xxxxxxxxxxxxxxxx/.venv/lib/python3.7/site-packages/fire-0.3.1-py3.7.egg/fire/core.py", line 468, in _Fire
    target=component.__name__)
  File "xxxxxxxxxxxxxxxx/.venv/lib/python3.7/site-packages/fire-0.3.1-py3.7.egg/fire/core.py", line 672, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File ".qlib/scripts/data_collector/yahoo/collector.py", line 622, in download_data
    super(Run, self).download_data(max_collector_count, delay, start, end, interval, check_data_length, limit_nums)
  File "xxxxxxxxxxxxxxxx/.qlib/scripts/data_collector/base.py", line 404, in download_data
    limit_nums=limit_nums,
TypeError: Can't instantiate abstract class YahooCollectorUS1d with abstract methods get_instrument_list

@2young-2simple-sometimes-naive 2young-2simple-sometimes-naive added the bug Something isn't working label Mar 21, 2021
@zhupr zhupr mentioned this issue Mar 22, 2021
5 tasks
@you-n-g
Copy link
Collaborator

you-n-g commented Mar 22, 2021

Merged.
Thanks @zhupr so much!

@Angry Is your problem solved?

@2young-2simple-sometimes-naive
Copy link
Contributor Author

Merged.
Thanks @zhupr so much!

@Angry Is your problem solved?

Yes it's working now.

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

Successfully merging a pull request may close this issue.

2 participants