From: <kai.kang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 0/3] Fixes for python3 and dbus-ptest
Date: Tue, 1 Nov 2016 15:39:41 +0800 [thread overview]
Message-ID: <cover.1477985510.git.kai.kang@windriver.com> (raw)
From: Kai Kang <kai.kang@windriver.com>
1
when multilib is enabled, python3 fails to start:
root@qemux86-64:~# 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'
Current thread 0x00007f4d9b268700 (most recent call first):
Aborted
It is library path issue, and fix it. Then check sys.path are right:
root@qemux86-64:~# python3
Python 3.5.2 (default, Nov 1 2016, 15:32:42)
[GCC 6.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib64/python35.zip', '/usr/lib64/python3.5', '/usr/lib64/python3.5/plat-linux', '/usr/lib64/python3.5/lib-dynload']
>>>
2
Only 4 cases PASS of dbus-ptest. With the fixes, all ptests cases PASS on qemux86-64.
And for qemuarm, only one case fails:
./run-ptest: line 10: 283 Aborted ./$i ./test/data DBUS_TEST_HOMEDIR=./test > /dev/null
FAIL: test/test-refs
It is a multi-threads issue, and need more work to fix it.
---
The following changes since commit 003b053498aea91fdb8c5418d0d8bbda7b23dbc0:
boost: fix the SRC_URI to point to an actual release, and not a master snapshot (2016-10-31 14:23:12 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib kangkai/python3_and_dbus
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/python3_and_dbus
Kai Kang (3):
dbus-test: correct paths in service and conf files
dbus: update build options when enable ptest
python3: fix library search path
meta/recipes-core/dbus/dbus-test_1.10.10.bb | 3 ++
meta/recipes-core/dbus/dbus_1.10.10.bb | 4 +-
...t-python3-lib-pathes-for-multilib-support.patch | 49 ++++++++++++++++++++++
.../python/python3/python-3.3-multilib.patch | 13 +++---
meta/recipes-devtools/python/python3_3.5.2.bb | 1 +
5 files changed, 61 insertions(+), 9 deletions(-)
create mode 100644 meta/recipes-devtools/python/python3/correct-python3-lib-pathes-for-multilib-support.patch
--
2.10.1
next reply other threads:[~2016-11-01 7:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 7:39 kai.kang [this message]
2016-11-01 7:39 ` [PATCH 1/3] dbus-test: correct paths in service and conf files kai.kang
2016-11-01 7:39 ` [PATCH 2/3] dbus: update build options when enable ptest kai.kang
2016-11-01 7:39 ` [PATCH 3/3] python3: fix library search path kai.kang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1477985510.git.kai.kang@windriver.com \
--to=kai.kang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox