<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13082</bug_id>
          
          <creation_ts>2018-12-13 06:45:15 +0000</creation_ts>
          <short_desc>scripts/oe-git-archive: failed when running without installing gitpython package to /usr/bin/python3</short_desc>
          <delta_ts>2019-02-22 01:02:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="yeoh ee peng">ee.peng.yeoh</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82487</commentid>
    <comment_count>0</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-12-13 06:45:15 +0000</bug_when>
    <thetext>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 &lt;file dir to archive&gt; -g &lt;dir to git archive&gt; -b &lt;git branch&gt;

Traceback (most recent call last):
  File &quot;/home/&lt;user&gt;/poky/scripts/oe-git-archive&quot;, line 271, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/&lt;user&gt;/poky/scripts/oe-git-archive&quot;, line 229, in main
    &apos;commit_count&apos;: metadata[&apos;layers&apos;][&apos;meta&apos;][&apos;commit_count&apos;],
KeyError: &apos;commit_count&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82488</commentid>
    <comment_count>1</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-12-13 06:49:12 +0000</bug_when>
    <thetext>When the needed python package was not available, it shall exit with meaningful message to remind user to install the needed python package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83084</commentid>
    <comment_count>2</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2019-02-22 01:02:39 +0000</bug_when>
    <thetext>http://lists.openembedded.org/pipermail/openembedded-core/2019-January/277598.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>