Fixed
Created: Aug 31, 2017
Updated: Dec 3, 2018
Resolved Date: Sep 13, 2017
Found In Version: 9.0.0.9
Fix Version: 9.0.0.11
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Build & Config
Customer needs to use pip with python3.
If package is built with package deb and rpm, the out put is the following
root@intel-x86-64:~# pip
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named 'pkg_resources'
root@intel-x86-64:~# less /usr/bin/pip
#!/usr/bin/env python3
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==8.1.2','console_scripts','pip'
__requires__ = 'pip==8.1.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==8.1.2', 'console_scripts', 'pip')()
)
1- Build an image using the config from below.
2- runqemu qemux86-64 nographic
3- root@qemux86-64:~# pip
<build>/conf/local.conf
BB_NO_NETWORK ?= '0'
WRTEMPLATE ?= ""
MACHINE ??= "qemux86-64"
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
LINUX_KERNEL_TYPE ??= "standard"
DISTRO ?= "wrlinux"
DISTRO ??= "wrlinux-small"
PACKAGE_CLASSES ?= "package_deb"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks dev-pkgs tools-sdk tools-debug package-management"
IMAGE_INSTALL_append += " packagegroup-core-ssh-openssh openssl powertop sudo sysstat wget less procps psmisc ethtool tar sed minicom bzip2 pm-utils hdparm pciutils rsync netkit-telnet iptables lsof"
IMAGE_INSTALL_append += " mtd-utils"
IMAGE_INSTALL_append += " python3-pip python3-setuptools ruby python3"
IMAGE_OVERHEAD_FACTOR = "1.5"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
IMAGE_FSTYPES += "tar.bz2"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
KERNEL_FEATURES_append = " cfg/systemd.scc"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"