-
Notifications
You must be signed in to change notification settings - Fork 185
Description
PS H:\github\finhack\test_project> finhack collector run --vendor=tushare
Traceback (most recent call last):
File "\?\H:\github\finhack.conda\Scripts\finhack-script.py", line 33, in
sys.exit(load_entry_point('finhack', 'console_scripts', 'finhack')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "h:\github\finhack\finhack\core\command\finhack.py", line 23, in main
core = Core()
^^^^^^
File "h:\github\finhack\finhack\core\core.py", line 27, in init
self.init_logger()
File "h:\github\finhack\finhack\core\core.py", line 59, in init_logger
Log.logger=Log.Log(module=self.args.module,vendor=vendor,action=action,logs_dir=LOGS_DIR,background=self.args.background).logger
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "h:\github\finhack\finhack\library\log.py", line 8, in init
logger.add(log_path, level="DEBUG", format=fmt, retention='7 days', filter=lambda record: record["extra"].get("name") == "core")
File "h:\github\finhack.conda\Lib\site-packages\loguru_logger.py", line 802, in add
wrapped_sink = FileSink(path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "h:\github\finhack.conda\Lib\site-packages\loguru_file_sink.py", line 191, in init
self._create_dirs(path)
File "h:\github\finhack.conda\Lib\site-packages\loguru_file_sink.py", line 223, in _create_dirs
os.makedirs(dirname, exist_ok=True)
File "", line 215, in makedirs
File "", line 215, in makedirs
File "", line 225, in makedirs
OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: 'H:\github\x0cinhack\test_project'
PS H:\github\finhack\test_project>