[yocto] [recipetool] Failure to create a new recipe (failed to parse setup.py)

Frank Meerkötter meerkoetter at googlemail.com
Sun Dec 4 13:41:29 PST 2016


Am 04.12.2016 22:34 schrieb "Paul Eggleton" <paul.eggleton at linux.intel.com>:

On Sun, 04 Dec 2016 20:54:00 Frank Meerkötter wrote:
> Here is an example:
>
> ~/$  devtool add libuv https://github.com/libuv/libuv.git
>
> NOTE: Fetching git://github.com/libuv/libuv.git;protocol=https...
>
> Traceback (most recent call
> last):
>
>   File "/home/fmee/hili_sdk/layers/poky/scripts/recipetool", line 120, in
> <module>
>     ret = main()
>   File "/home/fmee/hili_sdk/layers/poky/scripts/recipetool", line 109, in
> main
>     ret = args.func(args)
>   File "/home/fmee/hili_sdk/layers/poky/scripts/lib/recipetool/create.py",
> line 627, in create_recipe
>     handler.process(srctree_use, classes, lines_before, lines_after,
> handled, extravalues)
>   File
> "/home/fmee/hili_sdk/layers/poky/scripts/lib/recipetool/
create_buildsys.py",
> line 349, in process
>     values = AutotoolsRecipeHandler.extract_autotools_deps(lines_before,
> srctree, extravalues)
>   File
> "/home/fmee/hili_sdk/layers/poky/scripts/lib/recipetool/
create_buildsys.py",
> line 486, in extract_autotools_deps
>     RecipeHandler.load_binmap(tinfoil.config_data)
>   File "/home/fmee/hili_sdk/layers/poky/scripts/lib/recipetool/create.py",
> line 150, in load_binmap
>     for line in f:
>   File
> "/home/fmee/hili_sdk/buildtools/sysroots/x86_64-
oesdk-linux/usr/lib/python3.
> 5/encodings/ascii.py", line 26, in decode
>     return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 1774:
> ordinal not in range(128)
> ERROR: Command '. /home/fmee/hili_sdk/layers/poky/oe-init-build-env
> /home/fmee/hili_sdk > /dev/null && script -e -q -c "recipetool
> --color=always create --devtool -o /tmp/devtool238kzam0 '
> https://github.com/libuv/libuv.git'  -x
> /home/fmee/hili_sdk/workspace/sources/devtoolsrcsme6hih0 -N libuv"
> /dev/null' failed

Unfortunately I can't reproduce that issue here.

Within the SDK environment, if you run "python3" and then inside there:

import locale
locale.getpreferredencoding(False)

What does it print?


ANSI_X3.4-1968
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161204/b39f97bd/attachment.html>


More information about the yocto mailing list