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

请问在windows上运行报这个错误如何解决,采用的手动安装模式,所以没有图形界面。

Faile to import cython option pricing model, please rebuild with cython in cmd.
找不到数据服务驱动vnpy_,使用默认的RQData数据服务
Traceback (most recent call last):
File "D:\PycharmProjects\vnpy-3.3.0\examples\veighna_trader\run.py", line 99, in <module>
main()
File "D:\PycharmProjects\vnpy-3.3.0\examples\veighna_trader\run.py", line 85, in main
main_engine.add_app(ExcelRtdApp)
File "D:\PycharmProjects\vnpy-3.3.0\vnpy\trader\engine.py", line 101, in add_app
engine: BaseEngine = self.add_engine(app.engine_class)
File "D:\PycharmProjects\vnpy-3.3.0\vnpy\trader\engine.py", line 72, in add_engine
engine: BaseEngine = engine_class(self, self.event_engine)
File "D:\ProgramData\Python\Python39\lib\site-packages\vnpy_excelrtd\engine.py", line 32, in init
self.server.start(REP_ADDRESS, PUB_ADDRESS)
File "D:\PycharmProjects\vnpy-3.3.0\vnpy\rpc\server.py", line 54, in start
self._socket_rep.bind(rep_address)
File "D:\ProgramData\Python\Python39\lib\site-packages\zmq\sugar\socket.py", line 214, in bind
super().bind(addr)
File "zmq\backend\cython\socket.pyx", line 540, in zmq.backend.cython.socket.Socket.bind
File "zmq\backend\cython\checkrc.pxd", line 28, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Address in use

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

https://www.vnpy.com/forum/topic/2446-faile-to-import-cython-option-pricing-model-please-rebuild-with-cython-in-cmd 看看这个有没有帮助

Member
avatar
加入于:
帖子: 4766
声望: 289

你的python是3.9,定价模型需要自己编译了。
可以看一下是不是同时加载了execlrtd和rpcservice模块导致zmq报错

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

沪公网安备 31011502017034号

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