During using oe-git-archive, we discovered that it failed when running it without installing gitpython package to /usr/bin/python3 Steps to reproduce the error: Step 01: source oe-init-build-env Step 02: run oe-git-archive oe-git-archive <file dir to archive> -g <dir to git archive> -b <git branch> Traceback (most recent call last): File "/home/<user>/poky/scripts/oe-git-archive", line 271, in <module> sys.exit(main()) File "/home/<user>/poky/scripts/oe-git-archive", line 229, in main 'commit_count': metadata['layers']['meta']['commit_count'], KeyError: 'commit_count'
When the needed python package was not available, it shall exit with meaningful message to remind user to install the needed python package.
http://lists.openembedded.org/pipermail/openembedded-core/2019-January/277598.html