On 07.09.20 12:28, Jan-Marc Stranz wrote:
> The line
> #!/usr/bin/env python3
> is already included in script
> "/usr/libexec/jailhouse/jailhouse-config-create" as first line!
Was apparently patched by the installation procedure of Yocto. Then you
should be covered by the python3-mako support of Yocto. If not, it's
likely a Yocto bug.
We effectively just do this:
# python
>>> from mako.template import Template
What does that report when run manually?
Jan
>
> I can not use a distro form SUSE or Debian.
> I have to build our own distro with Yocto (here: "warrior").
> And Yocto always installs "python" ("python2") and - as a runtime
> dependency of "jailhouse" - "python3" and "python3-mako" also.
>
> The is no package "python2-mako" at all; only "python-mako".
> And the packages "python-mako" and "python3-mako" clash with the file
> "/usr/bin/mako-render".
>
> Has anyone already created a BSP with "jailhouse" using "Yocto" and
> solved these problems?
>
> [email protected] schrieb am Montag, 7. September 2020 um 12:01:46
> UTC+2:
>
> On 07.09.20 11:23, Jan-Marc Stranz wrote:
> > I've build a Linux kernel with CONFIG_STRICT_DEVMEM and
> > CONFIG_IO_STRICT_DEVMEM deactivate, but the hardware check still
> not works.
> > From now I'll ignore the hardware check.
> >
> > I've tried to create the configuration for the root cell on the
> > targetwith " jailhouse config create sysconfig.c" without success.
> > I get an error message "This script requires the mako library to
> run".
> >
> > My root-fs contains "python3-mako", but "python" ist still "python
> 2.7.18".
> > What version of python is the script unsing?
> >
>
> Distro default. Likely still python2.
>
> > In my image recipe I can't add the package "python-mako" because
> is is
> > already provided by package "python3-mako".
> > How do I get out of this dilemma again?
>
> Try "python2-mako"? Or use a distro that does not have such problems:
>
> SUSE:
> python3-Mako-1.0.7-lp152.3.3.noarch
> python2-Mako-1.0.7-lp152.3.3.noarch
>
> Debian:
> ii python-mako 1.0.7+ds1-1 all fast and lightweight templating for
> the Python platform
> ii python3-mako 1.0.7+ds1-1 all fast and lightweight templating for
> the Python 3 platform
>
> As a workaround, you may also write
>
> #!/usr/bin/env python3
>
> into tools/jailhouse-config-create.
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> Corporate Competence Center Embedded Linux
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jailhouse" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jailhouse-dev/cc674085-e9fe-4bd9-a591-47593459c6f2n%40googlegroups.com
> <https://groups.google.com/d/msgid/jailhouse-dev/cc674085-e9fe-4bd9-a591-47593459c6f2n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/138c5784-6dbd-add0-2364-9fef4b7a9ea6%40siemens.com.