py-kms icon indicating copy to clipboard operation
py-kms copied to clipboard

latest versions of tzlocal leads to 0xC004F074 error

Open kinotenn opened this issue 4 years ago • 2 comments

The latest versions of tzlocal such as 3.0, will lead to a 0xC004F074 error while activating, as with these versions, tzlocal.get_localzone() losts its localize() method.

Effected PY file: pykms_Base.py Row: 127 Original script:

tz = get_localzone()
local_dt = tz.localize(requestDatetime)

Solution:

tz = get_localzone() from datetime import datetime local_dt = datetime.fromtimestamp(requestDatetime.timestamp(), tz=tz)

Or to specify the version of tzlocal to 2.x.

kinotenn avatar Aug 23 '21 13:08 kinotenn

I apply your solution for this error but it doesn't solve my problem for windows server 2022 standard

muhammetunal avatar Sep 06 '21 11:09 muhammetunal

I had the same issue, your fix worked for me.

Server = Raspberry Pi (Debian) Python3 and dependencies last updated today with apt.

Thanks

brunofatia avatar Sep 30 '21 23:09 brunofatia