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

Paul Eggleton paul.eggleton at linux.intel.com
Sun Dec 4 13:34:28 PST 2016


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?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list