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

TypeError: 'NoneType' object is not subscriptable #89

Open
Shaw-shaw opened this issue Nov 14, 2024 · 0 comments
Open

TypeError: 'NoneType' object is not subscriptable #89

Shaw-shaw opened this issue Nov 14, 2024 · 0 comments

Comments

@Shaw-shaw
Copy link

ypeError: 'NoneType' object is not subscriptable
root@ffea30034de5:/data/InStock/instock/job# python3 execute_daily_job.py 2024-11-13
Traceback (most recent call last):
File "/data/InStock/instock/job/execute_daily_job.py", line 66, in
main()
File "/data/InStock/instock/job/execute_daily_job.py", line 56, in main
bdj.main()
File "/data/InStock/instock/job/backtest_data_daily_job.py", line 98, in main
prepare()
File "/data/InStock/instock/job/backtest_data_daily_job.py", line 33, in prepare
stocks_data = stock_hist_data().get_data()
^^^^^^^^^^^^^^^^^
File "/data/InStock/instock/lib/singleton_type.py", line 18, in call
cls._instance = super(singleton_type, cls).call(*args, **kwargs) # 创建cls的对象
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/InStock/instock/core/singleton_stock.py", line 31, in init
_subset = stock_data(date).get_data()[list(tbs.TABLE_CN_STOCK_FOREIGN_KEY['columns'])]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

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

1 participant