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

添加ctp 就报这个错误ModuleNotFoundError: No module named 'vnpy.api.ctp.vnctpmd'
$ python run.py
Traceback (most recent call last):
File "run.py", line 11, in <module>
from vnpy.gateway.ctp import CtpGateway
File "/Users/yongqingwang/Documents/vnpy-master-2/vnpy/gateway/ctp/init.py", line 1, in <module>
from .ctp_gateway import CtpGateway
File "/Users/yongqingwang/Documents/vnpy-master-2/vnpy/gateway/ctp/ctp_gateway.py", line 6, in <module>
from vnpy.api.ctp import (
File "/Users/yongqingwang/Documents/vnpy-master-2/vnpy/api/ctp/init.py", line 1, in <module>
from .vnctpmd import MdApi
ModuleNotFoundError: No module named 'vnpy.api.ctp.vnctpmd'

Member
avatar
加入于:
帖子: 172
声望: 18

你看看你的vnpy/api/ctp文件夹下有没有vnctpmd.pyd文件

Member
avatar
加入于:
帖子: 172
声望: 18

你看看你的vnpy/api/ctp文件夹下有没有vnctpmd.pyd文件

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

这俩个文件都有啊

Member
avatar
加入于:
帖子: 172
声望: 18

mac系统不能使用ctp接口

Member
加入于:
帖子: 4
声望: 0

Python 3.7

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