“错误”;can';t比较初始偏移量和感知偏移量的日期时间”;使用python pelican生成网站时
我最近在3.5.0版上更新了python pelican。之后我没有工作生成。错误如下:“错误”;can';t比较初始偏移量和感知偏移量的日期时间”;使用python pelican生成网站时,python,pelican,Python,Pelican,我最近在3.5.0版上更新了python pelican。之后我没有工作生成。错误如下: ERROR: Could not process linux/ssh.md | can't compare offset-naive and offset-aware datetimes |___ | Traceback (most recent call last): | File "/usr/local/lib/python2.7/dist-packages/pelican/gene
ERROR: Could not process linux/ssh.md
| can't compare offset-naive and offset-aware datetimes
|___
| Traceback (most recent call last):
| File "/usr/local/lib/python2.7/dist-packages/pelican/generators.py", line 502, in generate_context
| context_sender=self)
| File "/usr/local/lib/python2.7/dist-packages/pelican/readers.py", line 492, in read_file
| context=context)
| File "/usr/local/lib/python2.7/dist-packages/pelican/contents.py", line 136, in __init__
| if hasattr(self, 'date') and self.date > SafeDatetime.now():
| TypeError: can't compare offset-naive and offset-aware datetimes
我已经更新了所有的插件,但是没有用
升级之前的版本是3.3.0,运行良好
请帮忙,怎么解决
(如果有错误,我很抱歉,谷歌翻译了吗)我也有同样的错误。我设法通过在我的
publishconf.py
中对选项进行注释,并在选项中加上\u FUTURE\u DATES=False
我没有进一步调查,所以我还不知道问题的确切原因