Open xiaodonggua1 opened 5 years ago
Traceback (most recent call last): File "D:/deyaTrade/test_api", line 82, in tt = TestTrade(front_trade, broker, investor, pwd, appid, auth_code, proc) File "D:/deyaTrade/test_api", line 23, in init self.t = CtpTrade() File "C:\Program Files\python36\lib\site-packages\py_ctp\trade.py", line 49, in init self.t = Trade() File "C:\Program Files\python36\lib\site-packages\py_ctp\ctp_trade.py", line 36, in init self.h = CDLL(absolute_dllfile_path) File "C:\Program Files\python36\lib\ctypes__init.py", line 348, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。
用的是https://pypi.org/project/py-ctp/ 的测试代码
Traceback (most recent call last): File "D:/deyaTrade/test_api", line 82, in
tt = TestTrade(front_trade, broker, investor, pwd, appid, auth_code, proc)
File "D:/deyaTrade/test_api", line 23, in init
self.t = CtpTrade()
File "C:\Program Files\python36\lib\site-packages\py_ctp\trade.py", line 49, in init
self.t = Trade()
File "C:\Program Files\python36\lib\site-packages\py_ctp\ctp_trade.py", line 36, in init
self.h = CDLL(absolute_dllfile_path)
File "C:\Program Files\python36\lib\ctypes__init.py", line 348, in init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。