vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 5
声望: 0

大佬大佬,求助!
我是新手一枚,在run no_ui run.py时,报错,求解!

appledeMacBook-Pro:no_ui apple$ python3 run.py
Traceback (most recent call last):
File "run.py", line 10, in <module>
from vnpy.gateway.ctp import CtpGateway
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy/gateway/ctp/init.py", line 1, in <module>
from .ctp_gateway import CtpGateway
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy/gateway/ctp/ctp_gateway.py", line 6, in <module>
from vnpy.api.ctp import (
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/vnpy/api/ctp/init.py", line 1, in <module>
from .vnctpmd import MdApi
ModuleNotFoundError: No module named 'vnpy.api.ctp.vnctpmd'

Administrator
avatar
加入于:
帖子: 4122
声望: 229

CTP等国内市场的接口都不支持MAC系统,所以请在run.py中移除相关的代码

Member
avatar
加入于:
帖子: 5
声望: 0

用Python的交易员 wrote:

CTP等国内市场的接口都不支持MAC系统,所以请在run.py中移除相关的代码

多谢大佬解答!

看来我要准备 window了 呜呜。。。

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3