Adding virtualenv recipe to build image

Yocto related software discussions are here

Adding virtualenv recipe to build image

Postby mbilloo » Sun Jan 24, 2016 3:21 pm

Hi,

I'm trying to add the following recipe: http://git.yoctoproject.org/cgit/cgit.c ... b?h=master

into my core-image-base Yocto build on the wandboard-quad. I have followed the instructions here: https://wiki.yoctoproject.org/wiki/How_do_I up until the point where they build the image (for qemux86). Instead, after this point I just run
Code: Select all
. ./setup-environment build
in fsl-community-bsp and bitbake the base core image. However, when I boot the image, virtualenv is not contained. Can anyone explain to me what I'm doing wrong?
mbilloo
 
Posts: 3
Joined: Tue Dec 22, 2015 12:58 am

Re: Adding virtualenv recipe to build image

Postby Richard » Mon Feb 15, 2016 9:07 am

Hello, mbilloo:

I get this work as follows:

1. Fetch yocto recipes for fsl-community-bsp and meta-cloud-services.
Code: Select all
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b fido
repo sync

cd sources
git clone git://git.yoctoproject.org/meta-cloud-services
git checkout -b fido-kilo origin/fido-kilo

cd ..
. ./setup-environment build


2. Add meta-cloud-services and meta-python into bblayers.conf.
vim build/conf/bblayers.conf
Code: Select all
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-yocto \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  ${BSPDIR}/sources/meta-openembedded/meta-python  \
  \
  ${BSPDIR}/sources/meta-fsl-arm \
  ${BSPDIR}/sources/meta-fsl-arm-extra \
  ${BSPDIR}/sources/meta-fsl-demos \
  ${BSPDIR}/sources/meta-cloud-services \
  ${BSPDIR}/sources/meta-cloud-services/meta-openstack \
"


3. Try to build "python-virtualenv" package.
Code: Select all
bitbake python-virtualenv


4. Add "python-virtualenv" into target image.

vim build/conf/local.conf
Code: Select all
IMAGE_INSTALL_append = " python-virtualenv"


Then I issue the command "virtualenv" in target board, but get error messages.
Code: Select all
~# virtualenv
Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
root@imx6qsabresd:~# virtualenv .env
Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources


BR,

Richard
Richard
Site Admin
 
Posts: 134
Joined: Tue Dec 17, 2013 6:57 am


Return to Software - Yocto

Who is online

Users browsing this forum: No registered users and 3 guests

cron