配置好 qlib-server服务器,使用 Mac 系统出现 NFS不能正常挂载的故障
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 48.7k
- Forks
- 7.7k
- PR merge metrics
- No merged PRs in 30d
Description
🐛 Bug Description
To Reproduce
Steps to reproduce the behavior:
- 在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 问题得以解决

Environment
- Qlib version: '0.9.1.99'
- Python version: Python 3.10.9
- OS (
Windows,Linux,MacOS): Mac OS - Commit number (optional, please provide it if you are using the dev version):
# qlib/config.py : 342 line
if "win" in platform.system().lower():
fix:
if "windows" in platform.system().lower():
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at qlib/config.py around line 342, where the platform check controls the generated NFS mount command. Reproduce the issue with the supplied YAML configuration and qlib.init_from_yaml_conf on macOS, then verify that the platform detection produces a valid mount command and that the calendar lookup completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, python
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100