Closed LrnzDC3696 closed 2 years ago
Since it is a platform specific python issue and not hata one, I need your system information.
What system information exactly?
Operation system CPU Python version Python implementation Hata version
And whatever else you might find useful
Seems like the platform they are on (probably android+arm) uses 32 bit time_t whose max value is somewhere around 2038 from epoch.
Here is a relevant stackoverflow thread which is related
https://stackoverflow.com/a/50860754
Apparently getting the platform independent timestamp has been described as "difficult" with no clear solution.
And a not-so-related but interesting article https://en.m.wikipedia.org/wiki/Year_2038_problem
I was expecting that they use 32 bit int for time. Tho as expected python is still not enforcing 64 bit int still.
I met datetime issues before, since I might receive high unix time, timestamp and snowflake values and their conversion to datetime fails. Linux and Windows also has different limits.
Pretty stupid python behavior, not gonna lie.
Tho as expected python is still not enforcing 64 bit int still.
Nothing they can do about time_t
being 32 bit on a platform.
The only sane workaround I see right now is to switch to 32 bit max on overflow seems like a reasonable solution that would work till 2038
Or, you can implement binary search to find the max timestamp
Nothing they can do about time_t being 32 bit on a platform.
They can convert it to 64 bit.
Sorry for late reply but here...
It's weird because on a device (Android) it works fine but on another one it doesn't...
Operation system: Android 10 armv7l
CPU: Unisoc SC9832e (4) @ 1.400GHz
Python version: 3.10.1
Python implementation: CPython
Hata version: Latest
The "Other" devices:
Operation system: Android 8.1.0 aarch
CPU: MT6765 (8) @ 2.301
Python version: 3.10.0
Python implementation: CPython
Hata version: Latest
Will be fixed next update.
Ok! oh and just please notify me here when the next update has been released because I'm not in the discord. Yeetn't when?
The next update is here.
Description
Expected behaviour
imports hata
Actual behaviour
errors
System information
Can't run... it errors