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

策略文件strategies.drop_line加载失败,触发异常:
Traceback (most recent call last):
File "/Users/eee/anaconda3/envs/qt_vnpy/lib/python3.7/site-packages/vnpy/app/cta_strategy/engine.py", line 776, in load_strategy_class_from_module
module = importlib.import_module(module_name)
File "/Users/eee/anaconda3/envs/qt_vnpy/lib/python3.7/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 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'strategies'

Administrator
avatar
加入于:
帖子: 4208
声望: 240

这是运行时目录的配置不对导致的,升级到2.0.8吧,我们做了个改进可以自动搜索目录了

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