Fixed
Created: Jun 27, 2016
Updated: Dec 3, 2018
Resolved Date: Jun 28, 2016
Found In Version: 8.0.0.5,8.0.0.6
Fix Version: 8.0.0.7
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Build & Config
When building and adding python3 to an multilib environment (tested on qemux86-64) it fails to start on target. python3 does not find its libraries that is located in the directory /usr/lib64/. Instead it looks for the libraries in the directory /usr/lib
This is probably not a good workaround but to get python3 to start this works:
root@qemu0:~# ln -s /usr/lib64/python3.4 /usr/lib/
root@qemu0:~# python3
Python 3.4.3 (default, Jun 27 2016, 22:09:03)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Configure environment:
/work/windriver/wrlinux_800/wrlinux-8/wrlinux/configure --with-board=qemux86-64 --enable-ccache=yes --enable-kernel=standard --enable-rootfs=glibc-small --with-ccache-dir=/work/yocto/ccache --with-sstate-dir=/work/yocto/sstate-cache --enable-prserver=no --enable-buildhist=yes --enable-reconfig --enable-buildtools=no --enable-buildtools=no --with-rcpl-version=0006
Add python and python3 to image:
make python.addpkg
make python3.addpkg
Build:
make
Start target:
make start-target
Try to start python3:
root@qemu0:~# python3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Aborted
root@qemu0:~#