[Buildroot] [PATCHv2] package/kodi: needs .py modules
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Sep 13 21:29:42 UTC 2015
Yann,
On Sun, 13 Sep 2015 23:13:03 +0200, Yann E. MORIN wrote:
> Kodi segfaults as soon as it tries to load a python module:
>
> Could not find platform independent libraries <prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> ImportError: No module named site
> Segmentation fault
>
> Turns out that keeping .py modules (with or without .pyc) fixes the
> issue.
>
> Currently, Kodi selects python, but since the format of modules is a
> choice, we can not select it.
>
> Fix that by inverting the dependency on python from Kodi:
> - turn it into a depends rather than a select,
> - add the dependency to ! pyc-only
> - update the comment accordingly.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Do we actually understand why it doesn't work? There is really no
reason for .py files to be necessary. Does it happen with Python 2 or
Python 3? Apparently, Kodi selects Python 2, so there really shouldn't
be any problem with having just .pyc files (Python 3 can be more
tricky in that respect.
> changes v1 -> v2:
> - fix spurious 'i' (vim insert)
But it wasn't enough it seems :)
> -comment "kodi needs a toolchain w/ C++, threads, wchar, dynamic library"
> +comment "kodi needs python and .py modiules, and a toolchain w/ C++, threads, wchar, dynamic library"
^^^^^^^^
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list