Bug 14619 - package data browser does not display anything
Summary: package data browser does not display anything
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.0 M1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-11-08 11:39 UTC by Robert Berger
Modified: 2021-11-11 17:11 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
screen shot (372.51 KB, image/png)
2021-11-08 11:39 UTC, Robert Berger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.