<?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>10909</bug_id>
          
          <creation_ts>2017-01-11 02:55:51 +0000</creation_ts>
          <short_desc>build-appliance-image requires pip3 but it isn&apos;t installed everywhere</short_desc>
          <delta_ts>2017-01-25 18:31:07 +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>virtual machines</component>
          <version>unspecified</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>25 Jan 2017: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mhalstead</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69700</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-01-11 02:55:51 +0000</bug_when>
    <thetext>| NOTE: Executing do_populate_poky_src ...
| DEBUG: Executing shell function do_populate_poky_src
| /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/qemux86_64-poky-linux/build-appliance-image/15.0.0-r0/temp/run.do_populate_poky_src.17845: 173: /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/qemux86_64-poky-linux/build-appliance-image/15.0.0-r0/temp/run.do_populate_poky_src.17845: pip3: not found
| WARNING: exit code 127 from a shell command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69705</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-11 12:35:48 +0000</bug_when>
    <thetext>Reassigning to Juro as he broke it.  CCing RP for his opinion as I&apos;ve never looked at this before.

Do we need to document pip3 as a requirement?  Should this task be using python3native so it uses the Python3 we built instead of the host python?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69730</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-01-11 18:20:41 +0000</bug_when>
    <thetext>Yes, I suppose I broke it.
Was never sure pip3 is part of Linux distros, was hoping for it.
Anyway, I also tried to use the native pip3 
AFAIK, all that is needed should be something like

EXTRANATIVEPATH += &quot;python3-pip-native&quot;

but this lead to various build errors, so I placed my bet on pip3 being on the host machine.

Having said this, it is probably worth implementing.
Another alternative is NOT having the toaster requirements pre-installed,
and have user manually type in:

$ pip3 install --user -r /home/builder/poky/bitbake/toaster-requirements.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69735</commentid>
    <comment_count>3</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-01-12 00:26:09 +0000</bug_when>
    <thetext>But if we are going to simply update build requirements to include pip3,
please also see https://bugzilla.yoctoproject.org/show_bug.cgi?id=10889</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69779</commentid>
    <comment_count>4</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-01-12 23:21:25 +0000</bug_when>
    <thetext>So I believe the consensus was to include &quot;pip3&quot; among requirements.
Hence, punting to Scott as the this requires to change the documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69780</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-12 23:27:57 +0000</bug_when>
    <thetext>And Michael will need to ensure it&apos;s on all the builders.  Michael: can you ensure that pip3 is on all the builders?  So far it appears to be missing on ubuntu1604.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69789</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-01-13 01:18:35 +0000</bug_when>
    <thetext>I&apos;ve installed pip3 on all the build workers. I used package management where is wasn&apos;t yet installed so the versions are not the same. Is this desired or do we need the latest pip3 available?

Versions include:

ubuntu1404 /usr/local/bin/pip3 pip 8.1.2 from /usr/local/lib/python3.4/dist-packages (python 3.4)
fedora24 /usr/bin/pip3 pip 8.0.2 from /usr/lib/python3.5/site-packages (python 3.5)
debian8 /usr/local/bin/pip3 pip 8.1.2 from /usr/local/lib/python3.4/dist-packages (python 3.4)
opensuse132 /usr/bin/pip3 pip 1.5.6 from /usr/lib/python3.4/site-packages (python 3.4)
centos7 /usr/bin/pip3 pip 8.1.0 from /usr/lib/python3.4/site-packages (python 3.4)
ubuntu1604 /usr/bin/pip3 pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)

debian-testing /usr/bin/pip3 pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
debian8.io /usr/bin/pip3 pip 1.5.6 from /usr/lib/python3/dist-packages (python 3.4)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69795</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-13 08:58:52 +0000</bug_when>
    <thetext>Matching the host python is good, so that&apos;s great thanks Michael.  Shifting back to ACCEPTED as the final it of this is documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69952</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-01-20 00:10:59 +0000</bug_when>
    <thetext>Hi, 

I will add the &quot;pip3&quot; package to the &quot;Essentials&quot; grouping for all supported distros.  See http://www.yoctoproject.org/docs/2.3/ref-manual/ref-manual.html#required-packages-for-the-host-development-system for the host package installation requirements section in the ref-manual.  Note, the implementation is through variables - thus, the YP Quick Start will have the same changes.

Let me know if things are cool and I will RESOLVE the bug and set the doc flag to &quot;done.&quot;

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70144</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-01-25 18:31:07 +0000</bug_when>
    <thetext>Hi, 

The &quot;pip3&quot; package is added as an essential package for all supported distributions.  I am marking this issue RESOLVED and setting the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>