Bug 15333

Summary: bitbake/lib/hashserv/sqlite.py:294: DeprecationWarning: The default datetime adapter is deprecated as of Python 3.12
Product: [Build System, Metadata & Runtime] BitBake Reporter: Alexander Kanavin <alex.kanavin>
Component: bitbakeAssignee: Joshua Watt <JPEWhacker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod, tim.orling
Version: unspecified   
Target Milestone: 5.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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