#1107929 python3-protobuf: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version.

Package:
python3-protobuf
Source:
python3-protobuf
Description:
Python 3 bindings for protocol buffers
Submitter:
наб
Date:
2025-06-17 14:43:02 UTC
Severity:
normal
#1107929#5
Date:
2025-06-17 14:40:58 UTC
From:
To:
Dear Maintainer,

When running electrum, I got
  /usr/lib/python3/dist-packages/google/protobuf/internal/well_known_types.py:91: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    _EPOCH_DATETIME_NAIVE = datetime.datetime.utcfromtimestamp(0)
and I repro this with just
  import datetime
  datetime.datetime.utcfromtimestamp(0)

Best,