报错:
C:\ProgramData\anaconda3\envs\qteasy-env-p311\python.exe I:\qteasy\qteasy-t3\t1-future.py
Traceback (most recent call last):
File "I:\qteasy\qteasy-t3\t1-future.py", line 6, in
qt.refill_data_source(
File "C:\ProgramData\anaconda3\envs\qteasy-env-p311\Lib\site-packages\qteasy\core.py", line 712, in refill_data_source
data_source.refill_local_source(
File "C:\ProgramData\anaconda3\envs\qteasy-env-p311\Lib\site-packages\qteasy\database.py", line 4907, in refill_local_source
raise KeyError(f'some items in tables list are not valid: '
KeyError: "some items in tables list are not valid: ['fut_mapping']"
Filling data source db:mysql://localhost@3306/qt_db ...
我想下载tushare上的期货主力与连续合约,但报错,有些其他表是可以下载的,也有很多接口都报类似错误,请问大神需要怎么处理?
接口:fut_mapping 这些接口(fut_basic, trade_cal, index_basic,fut_wsr)也都是不可以下载的,报同样错误。 是不是因为底层数据库没有建这些表格?
代码: qt.refill_data_source( tables=['fut_mapping'],
)
报错: C:\ProgramData\anaconda3\envs\qteasy-env-p311\python.exe I:\qteasy\qteasy-t3\t1-future.py Traceback (most recent call last): File "I:\qteasy\qteasy-t3\t1-future.py", line 6, in
qt.refill_data_source(
File "C:\ProgramData\anaconda3\envs\qteasy-env-p311\Lib\site-packages\qteasy\core.py", line 712, in refill_data_source
data_source.refill_local_source(
File "C:\ProgramData\anaconda3\envs\qteasy-env-p311\Lib\site-packages\qteasy\database.py", line 4907, in refill_local_source
raise KeyError(f'some items in tables list are not valid: '
KeyError: "some items in tables list are not valid: ['fut_mapping']"
Filling data source db:mysql://localhost@3306/qt_db ...