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

报错如下:

File "/Users/feivirus/Documents/project/pycharm/vnpy/examples/vn_trader/run.py", line 12, in <module>
from vnpy.gateway.ctptest import CtptestGateway
File "/Users/feivirus/Documents/project/pycharm/vnpy/vnpy/gateway/ctptest/init.py", line 1, in <module>
from .ctptest_gateway import CtptestGateway
File "/Users/feivirus/Documents/project/pycharm/vnpy/vnpy/gateway/ctptest/ctptest_gateway.py", line 11, in <module>
from .vnctpmd import MdApi
ModuleNotFoundError: No module named 'vnpy.gateway.ctptest.vnctpmd'

Administrator
avatar
加入于:
帖子: 3011
声望: 136

CTP API不支持Mac系统,去掉加载ctp_gateway

Member
加入于:
帖子: 14
声望: 2

用Python的交易员 wrote:

CTP API不支持Mac系统,去掉加载ctp_gateway

感谢,发现了。ctp只给了linux的so库,elf格式的。mac上mach-o格式,跑步起来.

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