Bug 11784 - Instructions for quick-start on Debian based distributions miss the installation of python
Summary: Instructions for quick-start on Debian based distributions miss the installat...
Status: RESOLVED NOTABUG
Alias: None
Product: Quick Start
Classification: Documentation
Component: quick-start (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 2.4 M4
Assignee: Scott Rifenbark
QA Contact:
URL:
Whiteboard: 12 July 2017: RESOLVED
Depends on:
Blocks:
 
Reported: 2017-07-12 19:46 UTC by Carlos Alberto Lopez Perez
Modified: 2017-07-12 20:45 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2017-07-12 19:46:15 UTC
On a new Debian stretch chroot, after installing the packages recommended by the quick install guide:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm

Trying to run bitbake results in this:

$ source poky/oe-init-build-env xtest
-bash: python: command not found
OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.
Please upgrade your python v2.


The fix is to install python2 (package name python):

$ sudo apt-get install python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python-minimal python2.7 python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 4166 kB of archives.
After this operation, 16.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
[...]


After that bitbake works.

So I think the package named "python" should be added to the list of packages to install in this guide
Comment 1 Scott Rifenbark 2017-07-12 20:09:04 UTC
So in looking at the section in the Quick Start, the "python" package is part of the list of host packages already.  I am going to list the sections for the 2.4 manual and the 2.3 and 2.3.1 Quick Start manual.  You can see that the "python" package is there. 

What version of the manual or YP were you looking at when you found this issue?

Thanks, 
Scott

2.3 - http://www.yoctoproject.org/docs/2.3/yocto-project-qs/yocto-project-qs.html#packages

2.3.1 - http://www.yoctoproject.org/docs/2.3.1/yocto-project-qs/yocto-project-qs.html#packages

2.4 (under development) - http://www.yoctoproject.org/docs/2.4/yocto-project-qs/yocto-project-qs.html#packages

Thanks, 
Scott
Comment 2 Carlos Alberto Lopez Perez 2017-07-12 20:24:37 UTC
Ups.. I just picked the first result on google that happened to be the doc for 1.8

I think this can be closed as invalid. Sorry for the noise
Comment 3 Scott Rifenbark 2017-07-12 20:45:54 UTC
No problem..  I am setting to RESOLVED/NOTABUG.  Reset the doc flag as well.

Scott