1
我最近更新了3.5.0版本的python-pelican。之後,我沒有工作generation.The錯誤如下:當使用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/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,它工作正常。
請幫忙,它是如何解決的?
(如果有錯誤,我很抱歉,並從谷歌翻譯翻譯)
非常感謝你 – 2014-11-28 17:50:57