Bug 14619

Summary: package data browser does not display anything
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Berger <pokylinux>
Component: Scripts and ToolsAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: randy.macleod, richard.purdie, ross.burton
Version: 3.4   
Target Milestone: 4.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
screen shot none

Description Robert Berger 2021-11-08 11:39:43 UTC
Created attachment 4839 [details]
screen shot

I am on poky/master this commit:

commit e17d4895ca069d3d5b268f8be561c3651c132b5c
Author: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Date:   Thu Oct 28 14:41:43 2021 +0200

    bitbake: fetch2: npmsw: Add support for github prefix in npm shrinkwrap version
    
    (Bitbake rev: 1d8af6aed0a929f493d2c3e31b8d3ee3a70beb43)
    
    Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>


The "package data browser" spits out errors like this:

Traceback (most recent call last):
  File "/workdir/sources/poky-training/scripts/oe-pkgdata-browser", line 184, in on_recipe_changed
    self.package_iters[package] = self.package_store.append([package, int(data["PKGSIZE"])])
ValueError: invalid literal for int() with base 10: 'glibc-src: 0'


and does not display anything.
Comment 1 Richard Purdie 2021-11-11 13:59:50 UTC
If you haven;t built things you also get:

Traceback (most recent call last):
  File "../scripts/oe-pkgdata-browser", line 252, in <module>
    window = PkgUi(pkgdata)
  File "../scripts/oe-pkgdata-browser", line 141, in __init__
    self.load_recipes()
  File "../scripts/oe-pkgdata-browser", line 239, in load_recipes
    for recipe in sorted(os.listdir(pkgdata)):
FileNotFoundError: [Errno 2] No such file or directory: '/media/build1/poky/buildN/tmp/pkgdata/qemux86-64'
Comment 2 Richard Purdie 2021-11-11 15:25:53 UTC
Patches for both issues on the oecore list.