vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 9
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\vnstudio\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\vnstudio\lib\site-packages\vnstation__main.py", line 4, in <module>
cli()
File "c:\vnstudio\lib\site-packages\click\core.py", line 829, in
call
return self.main(args, kwargs)
File "c:\vnstudio\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\vnstudio\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\vnstudio\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "c:\vnstudio\lib\site-packages\click\core.py", line 610, in invoke
return callback(
args, **kwargs)
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 28, in runtrader
run_trader(s)
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 89, 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_ctastrategy\
init.py", line 31, in <module>
from .base import APP_NAME, StopOrder
File "c:\vnstudio\lib\site-packages\vnpy_ctastrategy\base.py", line 52, in <module>
Interval.TICK: timedelta(milliseconds=1),
File "c:\vnstudio\lib\enum.py", line 348, in
getattr__
raise AttributeError(name) from None
AttributeError: TICK

Administrator
avatar
加入于:
帖子: 5108
声望: 296

你的VNStudio版本似乎太老了,请卸载后重装最新2.5.0即可

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

沪公网安备 31011502017034号