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

AttributeError: 'Redis' object has no attribute 'client' #102

Closed
hw201212 opened this issue Dec 12, 2020 · 4 comments
Closed

AttributeError: 'Redis' object has no attribute 'client' #102

hw201212 opened this issue Dec 12, 2020 · 4 comments
Labels
question Further information is requested stale

Comments

@hw201212
Copy link

[9268:MainThread](2020-12-12 09:48:29,096) INFO - qlib.Initialization - [init.py:42] - default_conf: client.
Traceback (most recent call last):
File "D:\python\lib\site-packages\pyqlib-0.6.0.dev0-py3.7-win-amd64.egg\qlib\utils_init_.py", line 604, in can_use_cache
r.client()
AttributeError: 'Redis' object has no attribute 'client'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/code/QuantInvest/invest-core/src/main/python/invest/qlib_apply/qlib_test.py", line 85, in
qlib.init()
File "D:\python\lib\site-packages\pyqlib-0.6.0.dev0-py3.7-win-amd64.egg\qlib_init_.py", line 56, in init
if not can_use_cache():
File "D:\python\lib\site-packages\pyqlib-0.6.0.dev0-py3.7-win-amd64.egg\qlib\utils_init_.py", line 608, in can_use_cache
r.close()
AttributeError: 'Redis' object has no attribute 'close'

@hw201212 hw201212 added the question Further information is requested label Dec 12, 2020
@hw201212
Copy link
Author

if name == 'main':
data_handler_config = {
"start_time": "2008-01-01",
"end_time": "2020-08-01",
"fit_start_time": "2008-01-01",
"fit_end_time": "2014-12-31",
"instruments": "csi300",
}
qlib.init()
h = Alpha158(**data_handler_config)
print(h.get_cols())

@zhupr
Copy link
Collaborator

zhupr commented Dec 12, 2020

@hw201212 Hi
You can try to update redis: python -m pip install -U redis

@hw201212
Copy link
Author

@hw201212 Hi
You can try to update redis: python -m pip install -U redis

Thanks,it's OK!

@github-actions
Copy link

This issue is stale because it has been open for three months with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants