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

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 77, in run_trader
main_engine = MainEngine(event_engine)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 65, in init
self.init_engines() # Initialize function engines
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 103, in init_engines
self.add_engine(LogEngine)
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\trader\engine.py", line 283, in init
self.add_file_handler()
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 313, in add_file_handler
file_path, mode="a", encoding="utf8"
File "c:\vnstudio\lib\logging__init.py", line 1092, in init
StreamHandler.
init(self, self._open())
File "c:\vnstudio\lib\logging\
init__.py", line 1121, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: 'C:\Users\strategies\.vntrader\log\vt_20200604.log'

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

没有在C:\Users目录创建日志的权限,你用的是管理员账户吗?

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

如何创建日志权限。我用的是管理员账户

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

用Python的交易员 wrote:

没有在C:\Users目录创建日志的权限,你用的是管理员账户吗?
是的,我用的是管理员账户

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

你是怎么启动VN Trader Pro的,修改启动目录了吗?

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