How to solve OverflowError: mktime argument out of range?

How to solve OverflowError: mktime argument out of range?

begin = time.mktime(time.strptime('1970-01-01 00:00:00', '%Y-%m-%d %H:%M:%S'))

Traceback (most recent call last): File "", line 1, in OverflowError: mktime argument out of range

错误是由Interchange中的时间模块引起的。根据Github上同样问题的py2neo项目post,该问题出现在用户使用2021.1.5版本后升级到2021.2.0时,可能是版本问题。可以尝试升级或降级Py2neo,看看能否解决问题。

https://github.com/py2neo-org/py2neo/issues/916