---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\rqalpha-3.0.7-py3.5.egg\rqalpha\main.py in run(config, source_code, user_funcs)
196 env.set_global_vars(GlobalVars())
--> 197 mod_handler.set_env(env)
198 mod_handler.start_up()
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\rqalpha-3.0.7-py3.5.egg\rqalpha\mod\__init__.py in set_env(self, environment)
50 system_log.debug(_(u"loading mod {}").format(lib_name))
---> 51 mod_module = import_mod(lib_name)
52 if mod_module is None:
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\rqalpha-3.0.7-py3.5.egg\rqalpha\utils\package_helper.py in import_mod(mod_name)
22 from importlib import import_module
---> 23 return import_module(mod_name)
24 except Exception as e:
D:\Program Files\Anaconda3\envs\rqalpha\lib\importlib\__init__.py in import_module(name, package)
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
127
D:\Program Files\Anaconda3\envs\rqalpha\lib\importlib\_bootstrap.py in _gcd_import(name, package, level)
D:\Program Files\Anaconda3\envs\rqalpha\lib\importlib\_bootstrap.py in _find_and_load(name, import_)
D:\Program Files\Anaconda3\envs\rqalpha\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)
ImportError: No module named 'rqalpha_mod_alphaStar_mgr'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
<ipython-input-2-f5effe19506e> in <module>()
11 file_path = "./testStrategy.ipynb"#"./rqalpha/examples/testFactor.py"
12
---> 13 run_file(strategy_file_path=file_path,config=config)
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\rqalpha-3.0.7-py3.5.egg\rqalpha\__init__.py in run_file(strategy_file_path, config)
95 config = parse_config(config)
96 clear_all_cached_functions()
---> 97 return main.run(config)
98
99
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\rqalpha-3.0.7-py3.5.egg\rqalpha\main.py in run(config, source_code, user_funcs)
311 user_exc = create_custom_exception(exc_type, exc_val, exc_tb, config.base.strategy_file)
312
--> 313 code = _exception_handler(user_exc)
314 mod_handler.tear_down(code, user_exc)
315 else:
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\rqalpha-3.0.7-py3.5.egg\rqalpha\main.py in _exception_handler(e)
320
321 def _exception_handler(e):
--> 322 better_exceptions.excepthook(e.error.exc_type, e.error.exc_val, e.error.exc_tb)
323 user_system_log.error(e.error)
324 if not is_user_exc(e.error.exc_val):
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\better_exceptions-0.1.8-py3.5.egg\better_exceptions\__init__.py in excepthook(exc, value, tb)
342 def excepthook(exc, value, tb):
343 formatted = format_exception(exc, value, tb)
--> 344 write_stream(formatted)
345
346
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\better_exceptions-0.1.8-py3.5.egg\better_exceptions\__init__.py in write_stream(data)
323
324 if PY3:
--> 325 STREAM.buffer.write(data)
326 else:
327 STREAM.write(data)
D:\Program Files\Anaconda3\envs\rqalpha\lib\site-packages\colorama\ansitowin32.py in __getattr__(self, name)
35
36 def __getattr__(self, name):
---> 37 return getattr(self.__wrapped, name)
38
39 def write(self, text):
AttributeError: 'OutStream' object has no attribute 'buffer'