vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
main_engine.add_app(app)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
engine = self.add_engine(app.engine_class)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
engine = engine_class(self, self.event_engine)
File "c:\vnstudio\lib\site-packages\vnpy\app\excel_rtd\engine.py", line 32, in init
self.server.start(REP_ADDRESS, PUB_ADDRESS)
File "c:\vnstudio\lib\site-packages\vnpy\rpc__init.py", line 107, in start
self.
socket_rep.bind(rep_address)
File "zmq\backend\cython\socket.pyx", line 550, in zmq.backend.cython.socket.Socket.bind
File "zmq\backend\cython\checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Permission denied
帮忙解决一下,谢谢

Administrator
avatar
加入于:
帖子: 3902
声望: 208

用进程管理器看下,把之前启动的其他VN TRADER进程(python.exe)给杀掉即可

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

行者无疆 wrote:

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
main_engine.add_app(app)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
engine = self.add_engine(app.engine_class)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
engine = engine_class(self, self.event_engine)
File "c:\vnstudio\lib\site-packages\vnpy\app\excel_rtd\engine.py", line 32, in init
self.server.start(REP_ADDRESS, PUB_ADDRESS)
File "c:\vnstudio\lib\site-packages\vnpy\rpc__init.py", line 107, in start
self.
socket_rep.bind(rep_address)
File "zmq\backend\cython\socket.pyx", line 550, in zmq.backend.cython.socket.Socket.bind
File "zmq\backend\cython\checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Permission denied
帮忙解决一下,谢谢
您好,请问该问题你解决了吗?我也出现了同样的问题

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

Traceback (most recent call last):
File "d:\vnstudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
main_engine.add_app(app)
File "d:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
engine = self.add_engine(app.engine_class)
File "d:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
engine = engine_class(self, self.event_engine)
File "d:\vnstudio\lib\site-packages\vnpy\app\excel_rtd\engine.py", line 32, in init
self.server.start(REP_ADDRESS, PUB_ADDRESS)
File "d:\vnstudio\lib\site-packages\vnpy\rpc__init.py", line 108, in start
self.
socket_rep.bind(rep_address)
File "zmq\backend\cython\socket.pyx", line 550, in zmq.backend.cython.socket.Socket.bind
File "zmq\backend\cython\checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Permission denied

启动时出现同样的问题,杀掉python.exe 没有用 ,请帮忙解决下,谢谢

Administrator
avatar
加入于:
帖子: 3902
声望: 208

这个是EXCEL RTD模块用的端口被别的程序占用了,更换一个好了

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

用Python的交易员 wrote:

这个是EXCEL RTD模块用的端口被别的程序占用了,更换一个好了

请问在哪里更换RTD的端口

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

guan wrote:

用Python的交易员 wrote:

这个是EXCEL RTD模块用的端口被别的程序占用了,更换一个好了

请问在哪里更换RTD的端口

已经解决,修改文件
d:\vnstudio\lib\site-packages\vnpy\app\excel_rtd\engine.py
REP_ADDRESS = "tcp://*:9001"

修改后为:
REP_ADDRESS = "tcp://*:9007"

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