[meta-freescale] repo init fails

Otavio Salvador otavio at ossystems.com.br
Tue Dec 16 03:03:56 PST 2014


Hello Marko,

On Tue, Dec 16, 2014 at 5:52 AM,  <marko.kenttala at parker.com> wrote:
> Anyone else have this problem that repo init fails with Python
> UnicodeDecodeError? I'm using the latest repo script and tried with two
> different computers (Ubuntu 14.04 and 12.04). Same error with daisy and
> dizzy. Here's the output:
>
> repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b
> daisy
> Get https://gerrit.googlesource.com/git-repo
> remote: Counting objects: 117, done
> remote: Finding sources: 100% (117/117)
> remote: Total 2958 (delta 1553), reused 2958 (delta 1553)
> Receiving objects: 100% (2958/2958), 2.51 MiB | 0 bytes/s, done.
> Resolving deltas: 100% (1553/1553), done.
> From https://gerrit.googlesource.com/git-repo
...
>  * [new tag]         v1.9.6     -> v1.9.6
> Get https://github.com/Freescale/fsl-community-bsp-platform
> Traceback (most recent call last):
>   File "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/main.py", line
> 500, in <module>
>     _Main(sys.argv[1:])
>   File "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/main.py", line
> 476, in _Main
>     result = repo._Run(argv) or 0
>   File "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/main.py", line
> 155, in _Run
>     result = cmd.Execute(copts, cargs)
>   File
> "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/subcmds/init.py",
> line 390, in Execute
>     self._SyncManifest(opt)
>   File
> "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/subcmds/init.py",
> line 163, in _SyncManifest
>     m._InitGitDir(mirror_git=mirrored_manifest_git)
>   File "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/project.py",
> line 2046, in _InitGitDir
>     self.bare_objdir.init()
>   File "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/project.py",
> line 2478, in runner
>     capture_stderr = True)
>   File
> "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/git_command.py", line
> 163, in __init__
>     _setenv(env, GIT_DIR, gitdir)
>   File
> "/home/kende/Work/Kontron/fsl­community­bsp/.repo/repo/git_command.py", line
> 116, in _setenv
>     env[name] = value.encode()
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 28:
> ordinal not in range(128)

This is likely caused by your gitconfig setting regarding your full name.

So please first check if this is the error cause, later you can find
how to solve it.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list