问题描述
- 使用python的ghost.py一直报错
-
Traceback (most recent call last):
File "D:python33liblogging__init__.py", line 939, in emit
msg = self.format(record)
File "D:python33liblogging__init__.py", line 810, in format
return fmt.format(record)
File "D:python33liblogging__init__.py", line 550, in format
record.asctime = self.formatTime(record, self.datefmt)
File "D:python33liblogging__init__.py", line 488, in formatTime
s = time.strftime(datefmt, ct)
ValueError: Invalid format string
Logged from file ghost.py, line 115
Traceback (most recent call last):
File "D:python33liblogging__init__.py", line 939, in emit
msg = self.format(record)
File "D:python33liblogging__init__.py", line 810, in format
return fmt.format(record)
File "D:python33liblogging__init__.py", line 550, in format
record.asctime = self.formatTime(record, self.datefmt)
File "D:python33liblogging__init__.py", line 488, in formatTime
s = time.strftime(datefmt, ct)
ValueError: Invalid format string
Logged from file ghost.py, line 115
解决方案
时间格式化格式不正确。是不是不支持py3
解决方案二:
我是用easy_install安装的pip安装的ghost.py
我也不知道支持不支持
时间: 2024-09-15 03:43:40