[Buildroot] [PATCH v2 04/20] python3: make it exclusive from python
Bernd Kuhls
bernd.kuhls at t-online.de
Sun Oct 9 07:55:40 UTC 2016
Am Sat, 08 Oct 2016 20:23:09 +0200 schrieb Yegor Yefremov:
> isn't mwclient Python 3 compatible? See [1]
>
> [1] https://github.com/mwclient/mwclient/blob/master/setup.py#L48
Hi Yegor,
using this defconfig
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_MWCLIENT=y
this error occurs with plain make:
-------------------------------------------------
>>> Finalizing target directory
PYTHONPATH="/home/buildroot/br3_couchdb/output/target/usr/lib/python3.5/
sysconfigdata/:/home/buildroot/br3_couchdb/output/target/usr/lib/
python3.5/site-packages/" /home/buildroot/br3_couchdb/output/host/usr/bin/
python3.5 support/scripts/pycompile.py /home/buildroot/br3_couchdb/output/
target/usr/lib/python3.5
Traceback (most recent call last):
File "/home/buildroot/br3_couchdb/output/host/usr/lib/python3.5/
py_compile.py", line 125, in compile
_optimize=optimize)
File "<frozen importlib._bootstrap_external>", line 700, in
source_to_code
File "<frozen importlib._bootstrap>", line 222, in
_call_with_frames_removed
File "/home/buildroot/br3_couchdb/output/target/usr/lib/python3.5/site-
packages/mwclient/ex.py", line 15
exec _file in globals(), predata
^
SyntaxError: invalid syntax
-------------------------------------------------
This error does not occur with python2.
Regards, Bernd
More information about the buildroot
mailing list