VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 4
声望: 0

报错内容:
2022-11-22 16:39:45 VeighNa Trader进程终止
2022-11-22 16:39:52 --------------------------------------------------
2022-11-22 16:39:52 VeighNa Trader进程启动
2022-11-22 16:39:53 找不到数据服务驱动vnpy,使用默认的RQData数据服务
2022-11-22 16:39:58 VeighNa Trader进程终止
2022-11-22 16:40:14 --------------------------------------------------
2022-11-22 16:40:14 VeighNa Trader进程启动
2022-11-22 16:40:15 找不到数据服务驱动vnpy
,使用默认的RQData数据服务
2022-11-22 16:40:19 VeighNa Trader进程终止
2022-11-22 16:40:23 --------------------------------------------------
2022-11-22 16:40:23 VeighNa Trader进程启动
2022-11-22 16:40:25 Traceback (most recent call last):
File "D:\vnpyStudio\lib\runpy.py", line 196, in _run_module_as_main
2022-11-22 16:40:25 return _run_code(code, main_globals, None,
File "D:\vnpyStudio\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 39, in <module>
2022-11-22 16:40:25 File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 28, in run_trader
File "D:\vnpyStudio\lib\importlib__init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
2022-11-22 16:40:25 File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2022-11-22 16:40:25 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "D:\vnpyStudio\lib\site-packages\vnpy_optionmaster\
init__.py", line 26, in <module>
from .engine import OptionEngine, APP_NAME
File "D:\vnpyStudio\lib\site-packages\vnpy_optionmaster\engine.py", line 32, in <module>
from .pricing import binomial_tree_cython as binomial_tree
File "binomial_tree_cython.pyx", line 1, in init binomial_tree_cython
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
description

description

Member
avatar
加入于:
帖子: 1631
声望: 118

NumPy版本和内置的Cython定价模型不匹配,重新安装下指定版本即可:

pip install numpy==1.23.1
Member
avatar
加入于:
帖子: 4
声望: 0

嗯。。解决了问题

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】