microsoft / qlib

Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
https://qlib.readthedocs.io/en/latest/
MIT License
15.44k stars 2.64k forks source link

配置好 qlib-server服务器,使用 Mac 系统出现 NFS不能正常挂载的故障 #1450

Open markthink opened 1 year ago

markthink commented 1 year ago

🐛 Bug Description

To Reproduce

Steps to reproduce the behavior:

  1. 在Mac 系统无法正常完成 NFS 数据挂载

配置文件:

calendar_provider:
    class: LocalCalendarProvider
    kwargs:
        remote: True
feature_provider:
    class: LocalFeatureProvider
    kwargs:
        remote: True
expression_provider: LocalExpressionProvider
instrument_provider: ClientInstrumentProvider
dataset_provider: ClientDatasetProvider
provider: ClientProvider
expression_cache: null
dataset_cache: null
calendar_cache: null

provider_uri: 10.71.117.61:/
mount_path: ./cn_data/
auto_mount: True
flask_server: 10.71.117.61
flask_port: 9710

客户端配置:

import qlib
from qlib.data import D

qlib.init_from_yaml_conf('./config.yaml')
fox = D.calendar(start_time='2010-01-01', end_time='2017-12-31', freq='day')[:2]
print(fox)

Expected Behavior

生成的命令如下: 在 Mac 环境此命令出现未预期的行为 sudo mount.nfs 10.71.117.61:/ cn_data:\'

Screenshot

将 win 改成 windows 问题得以解决 image

Environment

fix: if "windows" in platform.system().lower():

markthink commented 1 year ago

qlib-server 启动服务并没有发现 NFS服务 为了使用数据,暂时是通过新启一个 NFS服务容器共享存储盘,手动解决数据挂载.

mount -v -o vers=4, 10.71.117.61:/ cn_data 
chuhuan88 commented 1 year ago

Hello, can you share the downloaded dataset with me, I can't get on Yahoo, thank you very much.