mouday/spider-admin-pro

运行统计"/stats/list" no data collected on windows

pinkonio opened this issue · 1 comments

ScrapydUtil.parse_log_file raised err:

venv\lib\site-packages\scrapy_util\utils.py", line 15, in parse_log_file
    _, project, spider, filename = log_file.split('/')
ValueError: not enough values to unpack (expected 4, got 1)

when you run on windows then change line 15 : "log_file.split('/')" to log_file.split(os.sep) , and "import os" on the top.

thank you