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

启动VN Trader Pro时选上Option Master以后出错

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnstation\cli.py", line 90, in run_trader
module = importlib.import_module(d["module"])
File "C:\vnstudio\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\vnstudio\lib\site-packages\vnpy\app\option_master\
init.py", line 3, in <module>
from .engine import OptionEngine, APP_NAME
File "C:\vnstudio\lib\site-packages\vnpy\app\option_master\engine.py", line 33, in <module>
from .pricing import binomial_tree_cython as binomial_tree
File "
init__.pxd", line 918, in init binomial_tree_cython
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject

这个怎么解决呢?

Member
avatar
加入于:
帖子: 3469
声望: 228

应该是numpy版本的问题,直接对numpy进行降版本或者升版本就好

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

xiaohe wrote:

应该是numpy版本的问题,直接对numpy进行降版本或者升版本就好
谢谢了 :),升级numpy 1.20.1 以后
启动没有没问题了

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

沪公网安备 31011502017034号

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