<div dir="ltr"><div><div>Hello Ross,<br><br></div>Seems that you are correct. I have checked on my host Fedora 27:<br><br>[vuser@localhost bin]$ pwd<br>/usr/bin<br>[vuser@localhost bin]$ uname -r<br>4.16.5-200.fc27.x86_64<br>[vuser@localhost bin]$ ls -al pyth*<br>lrwxrwxrwx. 1 root root    7 Mar 14 14:36 python -> python2<br>lrwxrwxrwx. 1 root root    9 Mar 14 14:36 python2 -> python2.7<br>-rwxr-xr-x. 1 root root 7128 Mar 14 14:37 python2.7<br>lrwxrwxrwx. 1 root root    9 Apr 4 17:03 python3 -> python3.6<br>-rwxr-xr-x. 2 root root 11240 Apr 4 17:03 python3.6<br>-rwxr-xr-x. 2 root root 11240 Apr 4 17:03 python3.6m<br>-rwxr-xr-x. 1 root root  388 Jul 28 2017 python3-chardetect<br>-rwxr-xr-x. 1 root root  387 Nov 16 18:05 python3-coverage<br>-rwxr-xr-x. 1 root root  396 Jul 28 2017 python3-mako-render<br>-rwxr-xr-x. 1 root root  392 Jul 28 2017 python3-pyinotify<br>[vuser@localhost bin]$<br><br></div><div>I also have checked on my Debian 9.4.0 VM:<br><br>user@unassigned-hostname:/usr/<wbr>bin$ pwd<br>/usr/bin<br>user@unassigned-hostname:/usr/<wbr>bin$ uname -r<br>4.9.0-6-amd64<br>user@unassigned-hostname:/usr/<wbr>bin$ ls -al pyth*<br>lrwxrwxrwx 1 root root      9 May 3 11:03 python -> python2.7<br>lrwxrwxrwx 1 root root      9 May 3 11:03 python2 -> python2.7<br>-rwxr-xr-x 1 root root 3779512 Nov 24 12:33 python2.7<br>lrwxrwxrwx 1 root root      9 May 3 11:03 python3 -> python3.5<br>-rwxr-xr-x 2 root root 4747120 Jan 19 2017 python3.5<br>-rwxr-xr-x 2 root root 4747120 Jan 19 2017 python3.5m<br>lrwxrwxrwx 1 root root     10 May 3 11:03 python3m -> python3.5m<br>user@unassigned-hostname:/usr/<wbr>bin$<br><br></div><div>Zoran<br>_______<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 3, 2018 at 6:00 PM, Burton, Ross <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I suggest you have a look through the feed that you link to and see if it provides a package which has /usr/bin/python3 in, and if it doesn't then just make a python3 -> python3.6 symlink (which is all you need).<span class="HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 2 May 2018 at 20:28, Raymond Yeung <span dir="ltr"><<a href="mailto:rksyeung@hotmail.com" target="_blank">rksyeung@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_4255108367079081674m_-6613158871024243400divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks Zoran.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">My Linux build machine uses Centos 7. I thought I'd done the installation to Python 3.6.5. If this is not Python3 > 3.4.0, then I'm confused. The link I follow for installation is here:  <a href="https://janikarhunen.fi/how-to-install-python-3-6-1-on-centos-7.html" class="m_4255108367079081674m_-6613158871024243400OWAAutoLink" id="m_4255108367079081674m_-6613158871024243400LPlnk623282" target="_blank">https://janikarhunen.fi/how-t<wbr>o-install-python-3-6-1-on-cent<wbr>os-7.html</a></p>
<br>
<p style="margin-top:0;margin-bottom:0">><span style="font-size:12pt">Â python3.6 -V</span></p>
<p>Python 3.6.5</p>
<p>><span style="font-size:12pt">python -V</span></p>
<p>Python 2.7.5</p>
<p><br>
</p>
<p>Anyway, I realize what went wrong. I'd Krogoth (a 2016 Poky) running before. Now as I'm migrating to Rocko (a 2017 Poky), I try to solve a Python versioning issue by installing Python only (as above). However, there may be other packages I need to update.
 After getting latest Reference Manual, download and install latest environment, I no longer have python3 issue. However, the Python version of why Python3.6 won't satisfy Python > 3.4.0 still puzzles me (though no longer blocking me).</p>
<p></p>
<p><br>
</p>
<p>Raymond</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_4255108367079081674m_-6613158871024243400divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Zoran Stojsavljevic <<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a><wbr>><br>
<b>Sent:</b> Tuesday, May 1, 2018 11:19 PM<br>
<b>To:</b> Raymond Yeung<br>
<b>Cc:</b> <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<b>Subject:</b> Re: [yocto] Problem with Python when running oe-init-build-env</font>
<div>Â </div>
</div>
<div class="m_4255108367079081674m_-6613158871024243400BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="m_4255108367079081674m_-6613158871024243400PlainText">Hello Raymond,<br>
<br>
The problem is that you (talking about your host distro):<br>
[1] Do NOT have python3 package installed;<br>
[2] Do have python3 package < 3.4.0 version, so you need to upgrade!<br>
<br>
So, I have no idea which host distro you are using, but:<br>
[1] If Debian/Ubuntu, then: apt-get install python3<br>
    If Fedora, then dnf install python3<br>
[2] If Debian/Ubuntu, then: apt-get update python3<br>
    If Fedora, then dnf update python3<br>
<br>
Hope this helps,<br>
Zoran<br>
_______<br>
<br>
On Tue, May 1, 2018 at 10:43 PM, Raymond Yeung <<a href="mailto:rksyeung@hotmail.com" target="_blank">rksyeung@hotmail.com</a>> wrote:<br>
> I'd just git cloned Rocko and meta-ti. When I try to source<br>
> oe-init-build-env, I got errors:<br>
><br>
><br>
> -bash: python3: command not found<br>
><br>
> BitBake requires Python 3.4.0 or later as 'python3'. "python -V" gives<br>
> "Python 2.7.9". "python3" is not in $PATH. I'd followed some detailed<br>
> online description to install Python 3.6 on CentOS 7. However, after<br>
> installation, it looks like I need to invoke it with python3.6.<br>
><br>
><br>
> How does this work now? I suppose the oe-init-build-env script uses/expects<br>
> python3, not python3.6.<br>
><br>
><br>
> Any insight?<br>
><br>
><br>
> Raymond<br>
><span class="m_4255108367079081674HOEnZb"><font color="#888888"><br>
><br>
> --<br>
> ______________________________<wbr>_________________<br>
> yocto mailing list<br>
> <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto" id="m_4255108367079081674m_-6613158871024243400LPlnk894811" class="m_4255108367079081674m_-6613158871024243400OWAAutoLink" target="_blank">
https://lists.yoctoproject.org<wbr>/listinfo/yocto</a>
<div id="m_4255108367079081674m_-6613158871024243400LPBorder_GT_15252767047480.9353307514330218" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_4255108367079081674m_-6613158871024243400LPContainer_15252767047450.0060050600858457814" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top-width:1px;border-top-style:dotted;border-top-color:rgb(200,200,200);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td id="m_4255108367079081674m_-6613158871024243400TextCell_15252767047470.3908343845028899" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_4255108367079081674m_-6613158871024243400LPRemovePreviewContainer_15252767047470.4155838622579563"></div>
<div id="m_4255108367079081674m_-6613158871024243400LPTitle_15252767047470.2926955628645245" style="color:rgb(0,120,215);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_4255108367079081674m_-6613158871024243400LPUrlAnchor_15252767047470.2327548529833663" href="https://lists.yoctoproject.org/listinfo/yocto" style="text-decoration:none" target="_blank">yocto Info Page</a></div>
<div id="m_4255108367079081674m_-6613158871024243400LPMetadata_15252767047470.16915804322735695" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://lists.yoctoproject.org" target="_blank">lists.yoctoproject.org</a></div>
<div id="m_4255108367079081674m_-6613158871024243400LPDescription_15252767047480.7820393102064364" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Discussion of all things about the Yocto Project. Read our Community Guidelines or learn more about how to participate in other community discussions. Subscribe before posting to bypass moderation.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
><br>
</font></span></div>
</span></font></div>
</div>
</div>
</div>
<br>-- <br>
______________________________<wbr>_________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org<wbr>/listinfo/yocto</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>