OverflowError: mktime argument out of range occurs when Py2neo connects to Neo4j

created at 10-02-2021 views: 1

error

The error is as follows:

error

the Clock.local_offset = Clock(-int(mktime(gmtime(0)))) will be a memory overflow in the Windows system.

solution

1. Enter: C:\ProgramData\Anaconda3\envs\python\lib\site-packages\interchange\time.py

2. Set 

Clock.local_offset = Clock(-int(mktime(gmtime(0)))) 

on line 1427 to: 

Clock.local_offset = Clock(-int(-28800.0))

as follows:

modification

Then no error will be reported.

Note: execute time.mktime(time.gmtime(0)) in linux
will get Output: -28800.0.

Please log in to leave a comment.