|
发表于 2022-2-27 17:17:14
|
显示全部楼层
遇到同样的问题,错误信息为:
set start event failed,errno:6
InitTD
InitTD
--->>> tcp://180.168.146.187:10202
--->>> tcp://180.168.146.187:10202
--->>> tcp://180.168.146.187:10202
--->>> tcp://180.168.146.187:10211
--->>> tcp://58.33.41.185:42213
--->>> tcp://58.33.41.185:42213
CTDSpi::ReqAuthenticate
CTDSpi::ReqUserLogin
连接行情服务器成功OnFrontConnected
连接交易服务器成功OnFrontConnected
行情登录成功OnRspUserLogin
9999,188075,simnow_client_test,0000000000000000,
Traceback (most recent call last):
File "D:/66.vnpy/vnpy-master/VNPY3.1/VNPY3.1/VNPY(CTP6.6.1)/VNTrader.py", line 116, in <module>
main()
File "D:/66.vnpy/vnpy-master/VNPY3.1/VNPY3.1/VNPY(CTP6.6.1)/VNTrader.py", line 106, in main
globalvar.vk = module_kline.MyKlineService(globalvar.ui.callback_kline)
File "D:\66.vnpy\vnpy-master\VNPY3.1\VNPY3.1\VNPY(CTP6.6.1)\module_kline.py", line 12, in __init__
super().__init__(_signal)
File "D:\66.vnpy\vnpy-master\VNPY3.1\VNPY3.1\VNPY(CTP6.6.1)\vnklineservice.py", line 13, in __init__
self.vnkline = CDLL(currpath + '\\vnklineservice.dll')
File "D:\55installation\anaconda\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 182] 操作系统无法运行 %1。
交易登录成功OnRspUserLogin
现状:
1 Python版本:3.7.10
2 vnpy版本: 3.1
3 “vnpy-master\VNPY3.1\VNPY3.1\VNPY(CTP6.6.1)\vnklineservice.dll”文件存在
4 安装了“vnpy-master\VNPY3.1\VNPY3.1\vc2013运行时库”下的vcredist_x64.exe,并重启了笔记本
5 将源码中的 os.path.dirname(__file__) 改为 os.path.dirname('__file__')
又遇到相同情况的吗?
|
|