[yocto] Problem with Python when running oe-init-build-env
Raymond Yeung
rksyeung at hotmail.com
Wed May 2 12:28:09 PDT 2018
Thanks Zoran.
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: https://janikarhunen.fi/how-to-install-python-3-6-1-on-centos-7.html
> python3.6 -V
Python 3.6.5
>python -V
Python 2.7.5
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).
Raymond
________________________________
From: Zoran Stojsavljevic <zoran.stojsavljevic at gmail.com>
Sent: Tuesday, May 1, 2018 11:19 PM
To: Raymond Yeung
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Problem with Python when running oe-init-build-env
Hello Raymond,
The problem is that you (talking about your host distro):
[1] Do NOT have python3 package installed;
[2] Do have python3 package < 3.4.0 version, so you need to upgrade!
So, I have no idea which host distro you are using, but:
[1] If Debian/Ubuntu, then: apt-get install python3
If Fedora, then dnf install python3
[2] If Debian/Ubuntu, then: apt-get update python3
If Fedora, then dnf update python3
Hope this helps,
Zoran
_______
On Tue, May 1, 2018 at 10:43 PM, Raymond Yeung <rksyeung at hotmail.com> wrote:
> I'd just git cloned Rocko and meta-ti. When I try to source
> oe-init-build-env, I got errors:
>
>
> -bash: python3: command not found
>
> BitBake requires Python 3.4.0 or later as 'python3'. "python -V" gives
> "Python 2.7.9". "python3" is not in $PATH. I'd followed some detailed
> online description to install Python 3.6 on CentOS 7. However, after
> installation, it looks like I need to invoke it with python3.6.
>
>
> How does this work now? I suppose the oe-init-build-env script uses/expects
> python3, not python3.6.
>
>
> Any insight?
>
>
> Raymond
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
yocto Info Page<https://lists.yoctoproject.org/listinfo/yocto>
lists.yoctoproject.org
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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180502/d6deac44/attachment.html>
More information about the yocto
mailing list