1

最近、python-pelican をバージョン 3.5.0 に更新しました。その後、生成は動作しませんでした。エラーは次のとおりです。

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 で、問題なく動作していました。

助けてください、どうすれば解決できますか?

(誤りがあれば申し訳ありませんが、Google翻訳から翻訳しました)

4

1 に答える 1

2

同じエラーが発生しました。のオプションにコメントすることで、なんとか回避できWITH_FUTURE_DATES = Falseましたpublishconf.py

これ以上調査していないので、問題の正確な原因はまだわかりません。

于 2014-11-27T17:19:45.613 に答える