-
Notifications
You must be signed in to change notification settings - Fork 197
Windows 10: OverflowError: mktime argument out of range #302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
the same error on windows10 r = time.struct_time(tm_year=1900, tm_mon=1, tm_mday=1, tm_hour=8, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=1, tm_isdst=-1)
time.mktime(r) it raise an error that |
@XuCcc Thanks for the feedback. |
This is basically a documentation issue, https://docs.python.org/3/library/datetime.html#datetime.date.fromtimestamp that if the underlying C library does not support the operation it throws an OverflowError |
I am facing this issue on my windows platform. I can't find how to solve this issue. Is it documented somewhere any walkaround of it? |
@edgarbenet you probably need to find a third party library that can cope with this issue. |
@edgarbenet Yesterday, I released version 4.3.5 with a patch that should improve compatibility with Windows. Could you please check whether it resolves the issue for you? |
Hi, |
@TomasKoutek It worked as you have mentioned, I was actually going to use WSL for this since the project I'm working on uses Flask & apparently Flask has some peer deps which uses this, & raises the exception, thus I'm not able to edit the code as some answers have suggested over here. but didn't catch why it's working when the |
@TomasKoutek, @hasinthaK can you confirm if the issue is still present or fixed in version 4.3.5 or 4.3.6? And to answer you question @hasinthaK |
@robsdedude This might help you.... As stated above,
... with this code ...
This should give you the same end result, but stops the argument for |
@technige thanks a bunch for the hint. The same thing came to my mind a few weeks back :D It should be fixed in 4.3.5+ |
The C library function on windows 10 does not support times below a certain value.
https://github.com/neo4j/neo4j-python-driver/blob/4.0/neo4j/time/__init__.py#L239
The text was updated successfully, but these errors were encountered: