@@ -28,22 +28,32 @@ do_install_ptest:append() {
# psutil/jinja2/packaging are oe-core; fastapi/uvicorn/defusedxml are
# meta-python.
RDEPENDS:${PN} += " \
- python3-psutil \
- python3-packaging \
+ python3-asyncio \
+ python3-crypt \
+ python3-ctypes \
+ python3-curses \
+ python3-datetime \
python3-defusedxml \
python3-fastapi \
- python3-uvicorn \
+ python3-io \
python3-jinja2 \
python3-json \
python3-logging \
- python3-asyncio \
+ python3-misc \
python3-multiprocessing \
python3-netclient \
+ python3-packaging \
+ python3-psutil \
+ python3-statistics \
+ python3-threading \
+ python3-unixadmin \
+ python3-uvicorn \
python3-xml \
"
RDEPENDS:${PN}-ptest += " \
python3-requests \
+ python3-shell \
"
# Optional fast-JSON accelerator glances uses if present.
glances 4.5.9 imports tracemalloc in glances/__init__.py, which is in python3-misc, so "import glances" fails and the ptest stops at collection: ModuleNotFoundError: Standard library module 'tracemalloc' was not found The next import that fails is statistics. Add every stdlib package that glances itself imports: python3-crypt (hashlib), python3-ctypes, python3-curses, python3-datetime, python3-io (socket), python3-misc (tracemalloc, webbrowser), python3-statistics, python3-threading (queue) and python3-unixadmin (getpass). The tests also need python3-shell (shlex). Sort the list. ptest: 55/55 pass on qemux86-64 (glibc, systemd). AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../python/python3-glances_4.5.9.bb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)