Bug 488275 - Python deprecation warnings in the drkonqi gdb preamble
Summary: Python deprecation warnings in the drkonqi gdb preamble
Status: RESOLVED FIXED
Alias: None
Product: drkonqi
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-09 22:31 UTC by ratijas
Modified: 2025-01-13 23:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2024-06-09 22:31:07 UTC
SUMMARY
drkonqi-coredump-launcher[97095]: /usr/local/kde/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:515: 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).
drkonqi-coredump-launcher[97095]:   boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')

drkonqi-coredump-launcher[97095]: /usr/local/kde/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:532: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
drkonqi-coredump-launcher[97095]:   'timestamp': datetime.utcnow().isoformat(),

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: git-master
KDE Frameworks Version: git-master
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Bug Janitor Service 2025-01-13 10:33:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/drkonqi/-/merge_requests/286
Comment 2 Harald Sitter 2025-01-13 23:17:03 UTC
Git commit 19d46ce42ed2d5254c4e0244797ea32f9302adda by Harald Sitter.
Committed on 13/01/2025 at 23:14.
Pushed by sitter into branch 'master'.

preamble: port away from deprecated api (bumps python requirement to 3.11)

M  +1    -1    CMakeLists.txt
M  +3    -3    src/data/gdb_preamble/preamble.py

https://invent.kde.org/plasma/drkonqi/-/commit/19d46ce42ed2d5254c4e0244797ea32f9302adda