Bug 15333 - bitbake/lib/hashserv/sqlite.py:294: DeprecationWarning: The default datetime adapter is deprecated as of Python 3.12
Summary: bitbake/lib/hashserv/sqlite.py:294: DeprecationWarning: The default datetime ...
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.2 M4
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-01-01 18:30 UTC by Alexander Kanavin
Modified: 2025-05-22 15:00 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kanavin 2024-01-01 18:30:10 UTC
I'm seeing this with python 3.12:

/srv/work/alex/poky/bitbake/lib/hashserv/sqlite.py:294:
DeprecationWarning: The default datetime adapter is deprecated as of
Python 3.12; see the sqlite3 documentation for suggested replacement
recipes
  cursor.execute(query, data)

The documentation that is supposed to help (but doesn't, not for me :) is:
https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters-deprecated

Just thought it would be good to address this warning well in advance
of it becoming a hard error.
Comment 1 Joshua Watt 2025-05-22 15:00:02 UTC
Bitbake: 38a1d715bf58acbc9cb21eed413b3542c81cf15a