AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

FinRL-Tutorials/1-Introduction/China_A_share_market_tushare.py

Đang mở
#111 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
1.2k
Fork
435
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

import sys; print('Python %s on %s' % (sys.version, sys.platform))
已连接到 pydev 调试器(内部版本号 243.25659.43)/home/xiahuadong/anaconda3/envs/FinRL-Tutorials/bin/python -X pycache_prefix=/home/xiahuadong/.cache/JetBrains/PyCharm2024.3/cpython-cache /home/xiahuadong/下载/pycharm-professional-2024.3.4/pycharm-2024.3.4/plugins/python-ce/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 44995 --file /media/xiahuadong/蓝色希捷5T/Desktop/Codes/FinRL-Tutorials/1-Introduction/China_A_share_market_tushare.py
/home/xiahuadong/下载/pycharm-professional-2024.3.4/pycharm-2024.3.4/plugins/python-ce/helpers/pydev/pydevd_plugins/__init__.py:2: UserWarning:
pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
ALL Modules have been imported!
tushare is NOT supported yet.
Traceback (most recent call last):
File "/media/xiahuadong/蓝色希捷5T/Desktop/Codes/FinRL-Meta/meta/data_processor.py", line 87, in __init__
self.processor = processor_dict.get(self.data_source)(
UnboundLocalError: local variable 'processor_dict' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xiahuadong/下载/pycharm-professional-2024.3.4/pycharm-2024.3.4/plugins/python-ce/helpers/pydev/pydevd.py", line 1570, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/xiahuadong/下载/pycharm-professional-2024.3.4/pycharm-2024.3.4/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/media/xiahuadong/蓝色希捷5T/Desktop/Codes/FinRL-Tutorials/1-Introduction/China_A_share_market_tushare.py", line 148, in
p = DataProcessor(
File "/media/xiahuadong/蓝色希捷5T/Desktop/Codes/FinRL-Meta/meta/data_processor.py", line 92, in __init__
raise ValueError(
ValueError: Please input correct account info for tushare!
python-BaseException

是不是应该代码改成:
FinRL-Meta/meta/data_processor.py

elif self.data_source == DataSource.tushare.value:
from meta.data_processors.tushare import Tushare

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.